41f2a74
Coverity: Fix small memory leak. Also move the malloc() return value check closer to the malloc() call.