From a5b837518eeee0aca774fa2e41439eb1e26af787 Mon Sep 17 00:00:00 2001 From: pkv Date: Sun, 21 Apr 2019 23:24:15 +0200 Subject: [PATCH] obs-outputs: Fix leak with certs for rtmp --- plugins/obs-outputs/librtmp/rtmp.h | 1 + plugins/obs-outputs/rtmp-stream.c | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/obs-outputs/librtmp/rtmp.h b/plugins/obs-outputs/librtmp/rtmp.h index bd3abe68a..dd90fb0c6 100644 --- a/plugins/obs-outputs/librtmp/rtmp.h +++ b/plugins/obs-outputs/librtmp/rtmp.h @@ -381,6 +381,7 @@ extern "C" void RTMP_Init(RTMP *r); void RTMP_Close(RTMP *r); RTMP *RTMP_Alloc(void); + void RTMP_TLS_Free(); void RTMP_Free(RTMP *r); void RTMP_EnableWrite(RTMP *r); diff --git a/plugins/obs-outputs/rtmp-stream.c b/plugins/obs-outputs/rtmp-stream.c index def27887e..cb36e2272 100644 --- a/plugins/obs-outputs/rtmp-stream.c +++ b/plugins/obs-outputs/rtmp-stream.c @@ -92,6 +92,7 @@ static void rtmp_stream_destroy(void *data) } } + RTMP_TLS_Free(); free_packets(stream); dstr_free(&stream->path); dstr_free(&stream->key);