dfilter: Free a scanner string

This commit is contained in:
João Valverde 2021-11-24 09:54:17 +00:00 committed by Wireshark GitLab Utility
parent eb8c3169e7
commit 35ad2e85c8
1 changed files with 2 additions and 0 deletions

View File

@ -257,6 +257,8 @@ static gboolean parse_charconst(dfwork_t *dfw, const char *s, unsigned long *val
g_string_append(yyextra->quoted_string, yytext);
}
else if (!append_escaped_char(yyextra->dfw, yyextra->quoted_string, yytext[1])) {
g_string_free(yyextra->quoted_string, TRUE);
yyextra->quoted_string = NULL;
return SCAN_FAILED;
}
}