Fixing a memory leak. name needs to be freed since it's being strdup'd lower.

This commit is contained in:
William King committed 2013-05-24 19:31:26 -07:00
1 parent f7056e0e5f
commit f3fd94b3e5
1 file changed
+3 -1
+3 -1
View 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);