[dm-devel] [PATCH] Need to use FREE macro instead of free.

Konrad Rzeszutek konrad at virtualiron.com
Tue Dec 16 15:54:57 UTC 2008


From: Konrad Rzeszutek <konrad at mars.virtualiron.com>

 When using the internal memory leak checker it is imperative that
 all free use the FREE macro. Otherwise accounting errors show up.

---
 libmultipath/devmapper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libmultipath/devmapper.c b/libmultipath/devmapper.c
index a021e44..bcbeb28 100644
--- a/libmultipath/devmapper.c
+++ b/libmultipath/devmapper.c
@@ -211,7 +211,7 @@ dm_addmap (int task, const char *name, const char *target,
 
 	freeout:
 	if (prefixed_uuid)
-		free(prefixed_uuid);
+		FREE(prefixed_uuid);
 
 	addout:
 	dm_task_destroy (dmt);
-- 
1.5.4.1




More information about the dm-devel mailing list