[Freeciv-Dev] (PR#15126) patch: fc_free macro
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=15126 >
> [jdorje - Do 12. Jan 2006, 00:51:42]:
>
>
> fc_malloc behaves exactly like a function call would.
>
> fc_free does not, because it modifies the parameter being given to it,
> which is impossible using a function.
>
> -jason
>
Ok, now it's clear :-)
Then the proposed patch is still "fc_free-2006-01-10.1.diff"
(#define FC_FREE(ptr) do { free(ptr); ptr = NULL; } while(0))
|
|