Fixing leak in presense where the contact header doesn't include the fs_path option during a presense subscription

This commit is contained in:
William King 2014-01-22 15:27:51 -08:00
parent c3711b81c9
commit c537fc6f61
1 changed files with 4 additions and 1 deletions

View File

@ -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';