提交 454a288e authored 作者: William King's avatar William King

Fixing leak in presense where the contact header doesn't include the fs_path…

Fixing leak in presense where the contact header doesn't include the fs_path option during a presense subscription
上级 91721778
...@@ -5686,7 +5686,10 @@ char *sofia_glue_get_path_from_contact(char *buf) ...@@ -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, ';'))) { if ((e = strrchr(path, ';'))) {
*e = '\0'; *e = '\0';
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论