summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 61bffa0)
raw | patch | inline | side by side (parent: 61bffa0)
author | Sebastian Harl <sh@tokkee.org> | |
Fri, 25 Apr 2014 22:14:37 +0000 (00:14 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 25 Apr 2014 22:14:37 +0000 (00:14 +0200) |
This will make sure that the memory is freed in case of parse errors.
src/frontend/grammar.y | patch | blob | history |
diff --git a/src/frontend/grammar.y b/src/frontend/grammar.y
index 26c8c1b046ddaa8df0af9c66dd2d2588a842a972..abab594b53a58ee0ddf440ceced7d2a5357b6883 100644 (file)
--- a/src/frontend/grammar.y
+++ b/src/frontend/grammar.y
%type <m> matcher
compare_matcher
+%destructor { free($$); } <str>
+%destructor { sdb_object_deref(SDB_OBJ($$)); } <node> <m>
+
%%
statements: