提交 7f945217 编写于 作者: J John Ferlan

parallels: Need to free memory on error path

上级 3fa23653
......@@ -135,8 +135,10 @@ parallelsAddFileExt(const char *path, const char *ext)
return NULL;
}
if (!virStrcpy(new_path, path, len))
if (!virStrcpy(new_path, path, len)) {
VIR_FREE(new_path);
return NULL;
}
strcat(new_path, ext);
return new_path;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册