From abf28c8fd12f662f32c1a81f84620f562de8f14b Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Wed, 15 Sep 2010 00:27:10 +0000 Subject: memory leak fixes. - free memory allocated by libc when decoding request arguments in server and reply in client. - free memory allocated to saved_frames during connection cleanup. - free memory allocated for transport name while creating listeners. Signed-off-by: Raghavendra G Signed-off-by: Vijay Bellur BUG: 1438 (memory leaks) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1438 --- xlators/protocol/client/src/client-handshake.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/protocol/client/src/client-handshake.c') diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c index d94cb774c87..48f19861b0e 100644 --- a/xlators/protocol/client/src/client-handshake.c +++ b/xlators/protocol/client/src/client-handshake.c @@ -837,6 +837,7 @@ out: trav = rsp.prog; while (trav) { next = trav->next; + free (trav->progname); free (trav); trav = next; } -- cgit