提交 59b481d9 编写于 作者: R Rich Felker

remove useless conditional before free from dynamic linker path code

上级 11bc1737
......@@ -479,7 +479,7 @@ static struct dso *load_library(const char *name)
FILE *f = fopen(ETC_LDSO_PATH, "rbe");
if (f) {
if (getdelim(&sys_path, (size_t[1]){0}, 0, f) <= 0) {
if (sys_path) free(sys_path);
free(sys_path);
sys_path = "";
}
fclose(f);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册