[vlc-devel] [PATCH] RIST access_output: fix mem leak that occured when socket creation failed

Thomas Guillem thomas at gllm.fr
Wed Nov 28 11:22:26 CET 2018


Hello,

You should also close flow sockets on error.

Note: rist_init_tx() should initiliaze all FDs to -1 (since 0 is valid).

Then you can add "if (flow->fd_out != -1) vlc_close(flow->fd_out)"; from the error handling.

On Tue, Nov 27, 2018, at 13:53, Sergio M. Ammirata wrote:
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
> Email had 1 attachment:
> + 0001-RIST-access_output-fix-mem-leak-that-occured-when-so.patch
>   2k (text/plain)


More information about the vlc-devel mailing list