[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libcdio-devel] memory leak in cdio_free()

From: Robert Kausch
Subject: Re: [Libcdio-devel] memory leak in cdio_free()
Date: Mon, 15 Jun 2015 19:09:20 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Thunderbird/36.0

Just found this mail and saw that the issue was still open. Fixed it now.

Thank you for spotting this!


Robert Kausch

Am 31.10.2014 um 19:49 schrieb Pete Batard:

The following in memory.c [1] looks like an unfortunate typo:

  if (p_memory != NULL) return;

The result is that cdio_free() currently leaks every block of memory it should deallocate... :(

On a side note, free() is supposed to accept NULL as a pointer ([2] "If ptr is NULL, no operation is performed."), so the check for NULL could probably be avoided.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]