Commit: Close memory leaks in chew

Nick Clifton nickc@redhat.com
Mon Aug 8 14:23:00 GMT 2016


Hi Andreas,

>> -  free (buffer->ptr);
>> +  if (buffer->ptr)
>> +    free (buffer->ptr);
> 
> free (0) is a no-op.

OK - I will remember that for the future.  I doubt if it really matters
here, since the performance penalty of the test is trivial.

Cheers
  Nick



More information about the Binutils mailing list