aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fatresize/fatresize-1.0.2-ped_free.patch
blob: 77f4be4a82d0d0b0c687c2fb52f5f80e6234a24f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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);