Merge pull request #2 from pas2k/master

Fix memory leak on object and associative array processing
This commit is contained in:
Marc Noirot
2014-11-17 10:14:44 +01:00
+2
View File
@@ -237,6 +237,7 @@ static amf0_data * amf0_object_read(read_proc_t read_proc, void * user_data) {
amf0_data_free(data);
return NULL;
}
amf0_data_free(name);
}
else {
amf0_data_free(name);
@@ -278,6 +279,7 @@ static amf0_data * amf0_associative_array_read(read_proc_t read_proc, void * use
amf0_data_free(name);
break;
}
amf0_data_free(name);
}
else {
/* invalid name: error */