CID 991517: Resource Leak in PackageInfo::Parse()
This commit is contained in:
parent
53711093fa
commit
e3e5e00627
@ -350,6 +350,7 @@ PackageInfo::Parse()
|
||||
BPath *path = new BPath();
|
||||
status_t ret = find_directory(dir, path);
|
||||
if (ret != B_OK) {
|
||||
delete path;
|
||||
RETURN_AND_SET_STATUS(B_ERROR);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user