[parted-devel] libparted/tests/label.c: Plug a trivial leak.
Jim Meyering
jim at meyering.net
Wed Mar 7 21:57:35 CET 2007
This plugs a trivial leak in the test program:
diff --git a/libparted/tests/label.c b/libparted/tests/label.c
index ee6d0cd..32a8e9e 100644
--- a/libparted/tests/label.c
+++ b/libparted/tests/label.c
@@ -40,6 +40,7 @@ START_TEST (test_create_label)
disk = ped_disk_new_fresh(dev, type);
fail_if(!disk, "Failed to create a label of type: %s",
type->name);
+ ped_disk_destroy (disk);
}
}
END_TEST
More information about the parted-devel
mailing list