Code

frontend/grammar: Added a destructor for data objects.
authorSebastian Harl <sh@tokkee.org>
Fri, 17 Oct 2014 08:34:20 +0000 (10:34 +0200)
committerSebastian Harl <sh@tokkee.org>
Fri, 17 Oct 2014 08:34:20 +0000 (10:34 +0200)
src/frontend/grammar.y

index 40159bf233278664cb5bcdd7fa0941051ea434a2..4dda3c56b99f1cfd3e7b646b6595012a394550ff 100644 (file)
@@ -148,6 +148,7 @@ sdb_fe_yyerror(YYLTYPE *lval, sdb_fe_yyscan_t scanner, const char *msg);
 
 %destructor { free($$); } <str>
 %destructor { sdb_object_deref(SDB_OBJ($$)); } <node> <m> <expr>
+%destructor { sdb_data_free_datum(&$$); } <data>
 
 %%