From dc4209275d4de447691fbdfc96f542e954fbd1a4 Mon Sep 17 00:00:00 2001 From: William King Date: Fri, 24 May 2013 19:45:24 -0700 Subject: [PATCH] Another location where mod_rtmp would leak memory. --- src/mod/endpoints/mod_rtmp/libamf/src/amf0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);