mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 00:22:35 +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
9172177878
commit
454a288ec6
@ -5686,7 +5686,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