Merge "Free whole QMF domain in case of an error in FDK_QmfDomain_Configure()"

This commit is contained in:
Treehugger Robot 2018-12-29 14:10:58 +00:00 committed by Gerrit Code Review
commit f8881d4bfe
1 changed files with 2 additions and 3 deletions

View File

@ -983,9 +983,8 @@ QMF_DOMAIN_ERROR FDK_QmfDomain_Configure(HANDLE_FDK_QMF_DOMAIN hqd) {
} }
bail: bail:
if (err == QMF_DOMAIN_OUT_OF_MEMORY) { if (err) {
FDK_QmfDomain_FreePersistentMemory(hqd); FDK_QmfDomain_FreeMem(hqd);
FDK_QmfDomain_ClearConfigured(&hqd->globalConf);
} }
return err; return err;
} }