From e4d98758fc1190fbce28ad4600bb439720ec2cd2 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 31 Mar 2014 23:34:58 +0200 Subject: [PATCH] frontend: Free dynamically allocated memory in the parser. --- src/frontend/grammar.y | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/grammar.y b/src/frontend/grammar.y index 004a5ef..4f7a891 100644 --- a/src/frontend/grammar.y +++ b/src/frontend/grammar.y @@ -154,6 +154,8 @@ fetch_statement: conn_fetch_t, conn_fetch_destroy)); CONN_FETCH($$)->name = strdup($2); $$->cmd = CONNECTION_FETCH; + free($2); + $2 = NULL; } ; -- 2.30.2