From: Sebastian Harl Date: Fri, 17 Oct 2014 08:34:20 +0000 (+0200) Subject: frontend/grammar: Added a destructor for data objects. X-Git-Tag: sysdb-0.6.0~109 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=83d25f827a46dc37e56857957a317fb06fb15a46;p=sysdb.git frontend/grammar: Added a destructor for data objects. --- diff --git a/src/frontend/grammar.y b/src/frontend/grammar.y index 40159bf..4dda3c5 100644 --- a/src/frontend/grammar.y +++ b/src/frontend/grammar.y @@ -148,6 +148,7 @@ sdb_fe_yyerror(YYLTYPE *lval, sdb_fe_yyscan_t scanner, const char *msg); %destructor { free($$); } %destructor { sdb_object_deref(SDB_OBJ($$)); } +%destructor { sdb_data_free_datum(&$$); } %%