The memory is released by cli_release_mlook, which also properly sets the
pointer to NULL. This was introduced with a big code reorganization
involving moving to the new keyword registration form in commit ad8be61c7.

This fix needs to be backported to 1.7.

Signed-off-by: Nenad Merdanovic <nmer...@haproxy.com>
---
 src/map.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/map.c b/src/map.c
index b6fce4d..90deb08 100644
--- a/src/map.c
+++ b/src/map.c
@@ -524,7 +524,6 @@ static int cli_io_handler_map_lookup(struct appctx *appctx)
 
        default:
                appctx->st2 = STAT_ST_FIN;
-               free(appctx->ctx.map.chunk.str);
                return 1;
        }
 }
-- 
2.9.3


Reply via email to