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

This commit is contained in:
William King 2013-05-24 19:30:57 -07:00
parent f7056e0e5f
commit f3fd94b3e5
1 changed files with 3 additions and 1 deletions

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);