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 9172177878
commit 454a288ec6
1 changed files with 4 additions and 1 deletions

View File

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