Spotted a leak while trying to understand what's happening.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23874 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2027,8 +2027,10 @@ ep_create_child(int fd, partition_id partitionID, off_t offset, off_t size,
|
|||||||
update_disk_device_job_progress(job, 0.0);
|
update_disk_device_job_progress(job, 0.0);
|
||||||
partition_data *child = create_child_partition(partition->id, index,
|
partition_data *child = create_child_partition(partition->id, index,
|
||||||
*childID);
|
*childID);
|
||||||
if (!child)
|
if (!child) {
|
||||||
|
delete logical;
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
PartitionType ptype;
|
PartitionType ptype;
|
||||||
ptype.SetType(type);
|
ptype.SetType(type);
|
||||||
|
|||||||
Reference in New Issue
Block a user