summaryrefslogtreecommitdiff
path: root/ui/cli/tap-gsm_astat.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/cli/tap-gsm_astat.c')
-rw-r--r--ui/cli/tap-gsm_astat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/cli/tap-gsm_astat.c b/ui/cli/tap-gsm_astat.c
index 8b5bb2b5ab..7dc26e3d07 100644
--- a/ui/cli/tap-gsm_astat.c
+++ b/ui/cli/tap-gsm_astat.c
@@ -320,7 +320,7 @@ static void
gsm_a_stat_init(const char *opt_arg _U_, void *userdata _U_)
{
gsm_a_stat_t *stat_p;
- GString *err_p;
+ gchar *err_p;
stat_p = g_new(gsm_a_stat_t, 1);
@@ -335,7 +335,7 @@ gsm_a_stat_init(const char *opt_arg _U_, void *userdata _U_)
if (err_p != NULL)
{
g_free(stat_p);
- g_string_free(err_p, TRUE);
+ wmem_free(NULL, err_p);
exit(1);
}