mirror of
https://github.com/noirotm/libamf.git
synced 2026-04-25 17:59:22 -05:00
Merge pull request #2 from pas2k/master
Fix memory leak on object and associative array processing
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user