Dear haproxy list,

While running haproxy master with valgrind and sending a SIGTERM to
terminate the proxy, valgrind found a memory leak -- the config file name
was not freed properly in the deinit() function.
commit d60ee3cbe86f2be4b8b53602439d83acb5a96907
Author: Sarkozi Laszlo <[email protected]>
Date:   Fri Aug 29 11:26:22 2014 +0200

    src: fix memory leak
    
    deinit() did not free the conf.file member of server objects.

diff --git a/src/haproxy.c b/src/haproxy.c
index 74b2687..13c3d26 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -1175,6 +1175,7 @@ void deinit(void)
 			free(s->check.bo);
 			free(s->agent.bi);
 			free(s->agent.bo);
+			free((char*)s->conf.file);
 			free(s);
 			s = s_next;
 		}/* end while(s) */

Reply via email to