[vlc-devel] [PATCH] access/directory.c: Fix a potential memleak

Julien 'Lta' BALLET elthariel at gmail.com
Mon Jul 7 18:31:49 CEST 2014


It appears so :-/ ...

Lets just take it as a proof of my willingness to maintain my patches :)


On Mon, Jul 7, 2014 at 6:28 PM, Jean-Baptiste Kempf <jb at videolan.org> wrote:

> 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
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20140707/78ccb5a9/attachment.html>


More information about the vlc-devel mailing list