diff options
-rw-r--r-- | ui/gtk/voip_calls.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/gtk/voip_calls.c b/ui/gtk/voip_calls.c index 5fe6946bef..01e9206aad 100644 --- a/ui/gtk/voip_calls.c +++ b/ui/gtk/voip_calls.c @@ -2354,7 +2354,10 @@ static void mgcpDialedDigits(gchar *signalStr, gchar **dialedDigits) } resultStr[j] = '\0'; - if (*resultStr == '\0') return; + if (*resultStr == '\0') { + g_free(tmpStr); + return; + } g_free(*dialedDigits); *dialedDigits = g_strdup(resultStr); |