mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
Fixing leak in presense where the contact header doesn't include the fs_path option during a presense subscription
This commit is contained in:
parent
c3711b81c9
commit
c537fc6f61
@ -1455,7 +1455,10 @@ char *sofia_glue_get_path_from_contact(char *buf)
|
||||
}
|
||||
}
|
||||
|
||||
if (!path) return NULL;
|
||||
if (!path) {
|
||||
free(contact);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if ((e = strrchr(path, ';'))) {
|
||||
*e = '\0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user