This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Commit: Close memory leaks in chew


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]