From: William King Date: Sat, 25 May 2013 02:45:24 +0000 (-0700) Subject: Another location where mod_rtmp would leak memory. X-Git-Tag: v1.2.13~334 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6320042f6b52289cb0037e020cea6d9814dee0f0;p=thirdparty%2Ffreeswitch.git Another location where mod_rtmp would leak memory. --- diff --git a/src/mod/endpoints/mod_rtmp/libamf/src/amf0.c b/src/mod/endpoints/mod_rtmp/libamf/src/amf0.c index d6230d3f0b..16f1f71475 100644 --- a/src/mod/endpoints/mod_rtmp/libamf/src/amf0.c +++ b/src/mod/endpoints/mod_rtmp/libamf/src/amf0.c @@ -283,7 +283,9 @@ static amf0_data * amf0_associative_array_read(read_proc_t read_proc, void * use amf0_data_free(element); amf0_data_free(data); return NULL; - } + } else { + amf0_data_free(name); + } } else { amf0_data_free(name);