1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix memleak of geometry buffer

Looks like this function is not used too often - thus leak was discovered
by static analyzis (Coverity).
This commit is contained in:
Zdenek Kabelac 2011-08-11 20:49:33 +00:00
parent 2100c90dd7
commit 5bedb7a5e0
2 changed files with 2 additions and 0 deletions

View 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.

View 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);
}