From dffc938519101aa64e5eb9b9f8b24eae12883a73 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 21 Feb 2015 01:09:22 +1100 Subject: [PATCH] Free buffer used in generator --- src/generator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/generator.c b/src/generator.c index f988111e..ea44c7a9 100644 --- a/src/generator.c +++ b/src/generator.c @@ -2169,7 +2169,7 @@ int generator(proc_instance_t *pi) ckp->data = gdata; gdata->ckp = ckp; if (ckp->proxy) { - char *buf; + char *buf = NULL; /* Wait for the stratifier to be ready for us */ do { @@ -2179,6 +2179,7 @@ int generator(proc_instance_t *pi) } buf = send_recv_proc(ckp->stratifier, "ping"); } while (!buf); + dealloc(buf); ret = proxy_mode(ckp, pi); } else { gdata->srvchk = create_ckmsgq(ckp, "srvchk", &server_watchdog);