]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fixing a memory leak. name needs to be freed since it's being strdup'd lower.
authorWilliam King <william.king@quentustech.com>
Sat, 25 May 2013 02:30:57 +0000 (19:30 -0700)
committerWilliam King <william.king@quentustech.com>
Sat, 25 May 2013 02:31:40 +0000 (19:31 -0700)
src/mod/endpoints/mod_rtmp/libamf/src/amf0.c

index e62b3098f54973977e56e1d2dd9110ab8d817fed..4fed720469bbd48d4d7f214566bc9a80a54ad269 100644 (file)
@@ -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);