diff --git a/src/mod/endpoints/mod_rtmp/libamf/src/amf0.c b/src/mod/endpoints/mod_rtmp/libamf/src/amf0.c index e62b3098f5..4fed720469 100644 --- a/src/mod/endpoints/mod_rtmp/libamf/src/amf0.c +++ b/src/mod/endpoints/mod_rtmp/libamf/src/amf0.c @@ -241,7 +241,9 @@ static amf0_data * amf0_object_read(read_proc_t read_proc, void * user_data) { amf0_data_free(element); amf0_data_free(data); return NULL; - } + } else { + amf0_data_free(name); + } } else { amf0_data_free(name);