linamh/sys-fs/fatresize/files/fatresize-1.0.2-ped_free.patch
Mario Fetka 4b7b7dfde6 initial commit
Package-Manager: portage-2.2.0_alpha188
RepoMan-Options: --force
2013-11-23 19:50:31 +01:00

30 lines
816 B
Diff

diff -up fatresize-1.0.2/fatresize.c.orig fatresize-1.0.2/fatresize.c
--- fatresize-1.0.2/fatresize.c.orig 2005-09-20 10:29:08.000000000 +0200
+++ fatresize-1.0.2/fatresize.c 2012-12-18 00:19:45.061745003 +0100
@@ -320,11 +320,11 @@ partition_warn_busy(PedPartition* part)
("Partition %s is being used. You must unmount it "
"before you modify it with Parted."),
path);
- ped_free(path);
+ free(path);
return 0;
}
- ped_free(path);
+ free(path);
return 1;
}
@@ -507,8 +507,8 @@ main(int argc, char **argv)
}
else if (!ped_unit_parse(def_str, dev, &end, &range_end))
return 1;
- ped_free(old_str);
- ped_free(def_str);
+ free(old_str);
+ free(def_str);
printd(3, "ped_geometry_duplicate()\n");
old_geom = ped_geometry_duplicate(&part->geom);