[vlc-devel] [PATCH] realloc: use realloc_or_free() to avoid memory leak

Rémi Denis-Courmont remi at remlab.net
Wed Dec 10 15:49:56 CET 2014


Le 2014-12-10 17:35, Arjun Sreedharan a écrit :
> overwriting pointer with realloc()'s return value can leak memory
> when realloc() fails. realloc_or_free() manages this and frees memory
> on failure.

Did you actually test this? Some of the snippets don't look right.

-- 
Rémi Denis-Courmont



More information about the vlc-devel mailing list