]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Another location where mod_rtmp would leak memory.
authorWilliam King <william.king@quentustech.com>
Sat, 25 May 2013 02:45:24 +0000 (19:45 -0700)
committerWilliam King <william.king@quentustech.com>
Sat, 25 May 2013 02:45:24 +0000 (19:45 -0700)
src/mod/endpoints/mod_rtmp/libamf/src/amf0.c

index d6230d3f0bbf147bc2fd484c3e25cc8121bcb4e3..16f1f714759cf8688e1e2e41c21c1755f2ffd753 100644 (file)
@@ -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);