X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fparser_proc_grammar.y;h=1b40555e3fa9e777039cf1010ab48c8c13d9b020;hp=7101d0ef51ceb42644746d37199ca0e84315c43d;hb=c0873cbbe9e5a83305adbc2bbd94aede5437f33d;hpb=2fa436074ca9a5e87f39b696de832fa2188fcfc6 diff --git a/src/parser_proc_grammar.y b/src/parser_proc_grammar.y index 7101d0e..1b40555 100644 --- a/src/parser_proc_grammar.y +++ b/src/parser_proc_grammar.y @@ -60,7 +60,7 @@ static inline void psi_parser_proc_deanon_typedef(struct psi_decl_arg *def) default: return; } - free(def->type->name); + zend_string_release(def->type->name); def->type->name = zend_string_copy(def->var->name); } static inline void psi_parser_proc_add_typedef(struct psi_parser *P, struct psi_decl_arg *def) @@ -947,7 +947,7 @@ decl_type_simple[type]: } ; -decl_real_type[type]: +decl_real_type[type]: /* allocated, so free, if set */ FLOAT[type_] { $type = psi_token_copy($type_); } @@ -964,7 +964,7 @@ int_signed[i]: | UNSIGNED ; -int_width[i]: +int_width[i]: /* allocated, so free, if set */ SHORT { $i = psi_token_copy($SHORT); } @@ -976,7 +976,7 @@ int_width[i]: } ; -decl_int_type[type]: +decl_int_type[type]: /* allocated, so free, if set */ CHAR { $type = psi_token_copy($CHAR); } @@ -1002,7 +1002,7 @@ decl_int_type[type]: } ; -int_signed_types[type]: +int_signed_types[type]: /* allocated, so free, if set */ %empty { $type = NULL; } @@ -1046,7 +1046,7 @@ signed_long_types[type]: | LONG INT ; -int_width_types[type]: +int_width_types[type]: /* allocated, so free, if set */ %empty { $type = NULL; }