[vlc-devel] [PATCH] access/directory.c: Fix a potential memleak
Jean-Baptiste Kempf
jb at videolan.org
Mon Jul 7 18:28:47 CEST 2014
You've been walkenized, I'm afraid :)
Le 07/07/2014 08:43, Julien 'Lta' BALLET a écrit :
> From: Julien 'Lta' BALLET <contact at lta.io>
>
> ---
> modules/access/directory.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/modules/access/directory.c b/modules/access/directory.c
> index f4c6107..c10cd96 100644
> --- a/modules/access/directory.c
> +++ b/modules/access/directory.c
> @@ -398,6 +398,7 @@ int DirRead (access_t *p_access, input_item_node_t *p_current_node)
> if (psz_uri == NULL
> || asprintf (&psz_full_uri, "%s/%s", p_current->uri, psz_uri) == -1)
> {
> + free (psz_uri);
> closedir (handle);
> continue;
> }
>
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
More information about the vlc-devel
mailing list