From: Sebastian Harl Date: Mon, 31 Mar 2014 21:34:58 +0000 (+0200) Subject: frontend: Free dynamically allocated memory in the parser. X-Git-Tag: sysdb-0.1.0~165 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e4d98758fc1190fbce28ad4600bb439720ec2cd2;p=sysdb.git frontend: Free dynamically allocated memory in the parser. --- 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; } ;