]> sourceware.org Git - lvm2.git/commitdiff
Fix memleak of geometry buffer
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 11 Aug 2011 20:49:33 +0000 (20:49 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 11 Aug 2011 20:49:33 +0000 (20:49 +0000)
Looks like this function is not used too often - thus leak was discovered
by static analyzis (Coverity).

WHATS_NEW_DM
libdm/ioctl/libdm-iface.c

index 4b3541daf88b6fecee802fec902176ac702c15cf..c20b67a5f9b9518f2620adc738f55503524749bc 100644 (file)
@@ -1,5 +1,6 @@
 Version 1.02.66 - 
 ===============================
+  Release geometry buffer in dm_task_destroy.
   Add memory pool locking functions to aid debuging of shared VG structs.
   Remove dev name prefix from dmsetup line output if major and minor is used.
   Remove support for the original version 1 dm ioctls.
index 932d3f44d6117e2acaf1699db0e0f0c7565a9b4a..767732a680a8ee813ebfecf47988725635c83651 100644 (file)
@@ -451,6 +451,7 @@ void dm_task_destroy(struct dm_task *dmt)
        dm_free(dmt->dev_name);
        dm_free(dmt->newname);
        dm_free(dmt->message);
+       dm_free(dmt->geometry);
        dm_free(dmt->uuid);
        dm_free(dmt);
 }
This page took 0.043707 seconds and 5 git commands to generate.