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);