[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



From: Konrad Rzeszutek <konrad 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]