From: Bradley Jokinen Date: Thu, 1 Oct 2015 21:34:05 +0000 (-0500) Subject: FS-8274 Fix memory leak caused by images not being freed in video_thread_run X-Git-Tag: v1.6.3~1^2~68^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8e21b43e00756f301204a75f6dd53d3b721f688;p=thirdparty%2Ffreeswitch.git FS-8274 Fix memory leak caused by images not being freed in video_thread_run --- diff --git a/src/mod/applications/mod_av/avformat.c b/src/mod/applications/mod_av/avformat.c index d33c462666..65864ad98e 100644 --- a/src/mod/applications/mod_av/avformat.c +++ b/src/mod/applications/mod_av/avformat.c @@ -506,6 +506,8 @@ static void *SWITCH_THREAD_FUNC video_thread_run(switch_thread_t *thread, void * int ret = -1; if (switch_queue_pop(eh->video_queue, &pop) == SWITCH_STATUS_SUCCESS) { + switch_img_free(&img); + if (!pop) { goto endfor; }