Check allocation status in correct scope.

This commit is contained in:
Bård Skaflestad
2011-10-19 20:32:50 +02:00
parent 735e0fca95
commit 803e3d1286

View File

@@ -96,11 +96,11 @@ compr_src_allocate(int np, int nsrc)
} else {
status = 1;
}
}
if (status <= 0) {
compr_src_deallocate(src);
src = NULL;
if (status <= 0) {
compr_src_deallocate(src);
src = NULL;
}
}
}