[vlc-devel] [PATCH] lua: fix memory leak
Steve Lhomme
robux4 at ycbcr.xyz
Mon Aug 6 07:08:46 CEST 2018
LGTM and applied. Thanks.
On 05/08/2018 02:58, Hannes Domani via vlc-devel wrote:
>
> Subject:
> [PATCH] lua: fix memory leak
> From:
> Hannes Domani <ssbssa at yahoo.de>
> Date:
> 05/08/2018 02:57
> To:
> vlc-devel at videolan.org
>
> To:
> vlc-devel at videolan.org
>
>
> ---
> modules/lua/vlc.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/modules/lua/vlc.c b/modules/lua/vlc.c
> index e6419fa234..0ab951fe1d 100644
> --- a/modules/lua/vlc.c
> +++ b/modules/lua/vlc.c
> @@ -232,6 +232,8 @@ int vlclua_dir_list(const char *luadirname, char ***restrict listp)
> /* Source Lua Scripts in architecture-independent data directory */
> if (both || libdir == NULL)
> list = vlclua_dir_list_append(list, datadir, luadirname);
> + else
> + free(datadir);
>
> *list = NULL;
> return VLC_SUCCESS;
> --
> 2.18.0
>
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list