forked from Mirrors/freeswitch
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…
Reference in New Issue