[Stgt-devel] [PATCH] free leaked target name

Pete Wyckoff pw
Sun Mar 25 17:21:41 CEST 2007


Target destroy leaked name.

Signed-off-by: Pete Wyckoff <pw at osc.edu>
---
 usr/target.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/target.c b/usr/target.c
index e6a9e76..f48839e 100644
--- a/usr/target.c
+++ b/usr/target.c
@@ -1266,7 +1266,7 @@ int tgt_target_destroy(int tid)
 	}
 
 	free(target->account.in_aids);
-
+	free(target->name);
 	free(target);
 
 	return 0;
-- 
1.5.0.5




More information about the stgt mailing list