aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fatresize/fatresize-1.0.2-ped_free.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-10-09 07:41:21 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-10-09 07:41:21 +0000
commitba4b76d209bb5b6ce057b9a539705b50ee15c5a9 (patch)
treea17ff348b7493bcfaccd90b312915e0160f2ab2e /testing/fatresize/fatresize-1.0.2-ped_free.patch
parentd7127deb857058ea9606dfd4903b3aa86746a497 (diff)
downloadaports-ba4b76d209bb5b6ce057b9a539705b50ee15c5a9.tar.bz2
aports-ba4b76d209bb5b6ce057b9a539705b50ee15c5a9.tar.xz
testing/fatresize: new aport
Diffstat (limited to 'testing/fatresize/fatresize-1.0.2-ped_free.patch')
-rw-r--r--testing/fatresize/fatresize-1.0.2-ped_free.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/fatresize/fatresize-1.0.2-ped_free.patch b/testing/fatresize/fatresize-1.0.2-ped_free.patch
new file mode 100644
index 0000000000..77f4be4a82
--- /dev/null
+++ b/testing/fatresize/fatresize-1.0.2-ped_free.patch
@@ -0,0 +1,29 @@
+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);