[vlc-devel] [PATCH 1/1] Fixed memory leak issue for bug#8726
Francois Cartegnie
fcvlcdev at free.fr
Fri Nov 22 08:17:04 CET 2013
Le 21/11/2013 05:42, Gaurav Pruthi a écrit :
> /* We found the folder, go recursively deeper */
> - return findOrCreateParentNode( current, sep );
> + node *parentNode = findOrCreateParentNode( current, sep );
> + free( path );
> + return parentNode;
> }
Hi,
Obvious leak. Seems correct.
That function could be optimized to not strdup on each call, but that
fix is sufficient for now.
Please rewrite patch summary according to guidelines and strip extra
whitespace.
Francois
More information about the vlc-devel
mailing list