no need for pointer check: free() already does nothing when nullptr is passed to it.
Authored by: steveking 2015-08-22
Parent: [r1070]
Child: [r1072]