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