Re: [hackers] [surf] Removing a memory leak when u wasn't freed. || Christoph Lohmann

From: Christoph Lohmann <20h_AT_r-36.net>
Date: Thu, 06 Feb 2014 16:48:19 +0100

Greetings.

On Thu, 06 Feb 2014 16:48:19 +0100 Silvan Jegen <s.jegen_AT_gmail.com> wrote:
> Calling g_free with a NULL pointer as an argument is a no-op [1] so I
> do not think the NULL check is necessary.
>
> [1] https://developer.gnome.org/glib/stable/glib-Memory-Allocation.html#g-free

You are right. Thanks for the suggestion.


Sincerely,

Christoph Lohmann
Received on Thu Feb 06 2014 - 16:48:19 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 06 2014 - 17:00:15 CET