aboutsummaryrefslogtreecommitdiffstats
path: root/ui/cli/tap-rlcltestat.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/cli/tap-rlcltestat.c')
-rw-r--r--ui/cli/tap-rlcltestat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/cli/tap-rlcltestat.c b/ui/cli/tap-rlcltestat.c
index 1cbe48eb4e..546d2a246a 100644
--- a/ui/cli/tap-rlcltestat.c
+++ b/ui/cli/tap-rlcltestat.c
@@ -365,7 +365,7 @@ static void rlc_lte_stat_init(const char *opt_arg, void *userdata _U_)
{
rlc_lte_stat_t *hs;
const char *filter = NULL;
- gchar *error_string;
+ GString *error_string;
/* Check for a filter string */
if (strncmp(opt_arg, "rlc-lte,stat,", 13) == 0) {
@@ -392,7 +392,7 @@ static void rlc_lte_stat_init(const char *opt_arg, void *userdata _U_)
rlc_lte_stat_packet,
rlc_lte_stat_draw);
if (error_string) {
- wmem_free(NULL, error_string);
+ g_string_free(error_string, TRUE);
g_free(hs);
exit(1);
}