From Evan Huus Memory leak in voip_calls.c https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7320
svn path=/trunk/; revision=42997
This commit is contained in:
parent
96beb44145
commit
b647402c60
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue