[libdvdnav-devel] [PATCH] a little memory leak

Jean-Baptiste Kempf jb at videolan.org
Thu Oct 2 14:56:12 CEST 2014


Applied.

Le 01/10/2014 21:50, Lawrence D'Oliveiro a écrit :
> ---
>   src/dvd_reader.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/src/dvd_reader.c b/src/dvd_reader.c
> index 7af2730..fb045b3 100644
> --- a/src/dvd_reader.c
> +++ b/src/dvd_reader.c
> @@ -450,6 +450,7 @@ dvd_reader_t *DVDOpen( const char *ppath )
>           if( retval == -1 ) {
>             goto DVDOpen_error;
>           }
> +        free(path_copy);
>           path_copy = new_path;
>           new_path = NULL;
>         }
>


-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device


More information about the libdvdnav-devel mailing list