RLC Graph: Free dfilter in case of errors.

This commit is contained in:
Martin Mathieson 2023-04-18 16:19:14 +00:00
parent e50c70369a
commit 3aeaea511a
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,7 @@ rlc_lte_tap_info *select_rlc_lte_session(capture_file *cf,
/* Dissect the data from the current frame. */
if (!cf_read_current_record(cf)) {
dfilter_free(sfcode);
return NULL; /* error reading the record */
}
@ -127,6 +128,7 @@ rlc_lte_tap_info *select_rlc_lte_session(capture_file *cf,
fprintf(stderr, "wireshark: Couldn't register rlc_lte_graph tap: %s\n",
error_string->str);
g_string_free(error_string, TRUE);
dfilter_free(sfcode);
exit(1); /* XXX: fix this */
}