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:
Stephan Aßmus
2008-02-05 15:13:14 +00:00
parent e84bd1d2e7
commit 70c8595603
@@ -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);
partition_data *child = create_child_partition(partition->id, index,
*childID);
if (!child)
if (!child) {
delete logical;
return B_ERROR;
}
PartitionType ptype;
ptype.SetType(type);