mirror of
https://github.com/fluencelabs/musl
synced 2025-05-30 16:11:40 +00:00
remove useless conditional before free from dynamic linker path code
This commit is contained in:
parent
11bc173765
commit
59b481d970
@ -479,7 +479,7 @@ static struct dso *load_library(const char *name)
|
|||||||
FILE *f = fopen(ETC_LDSO_PATH, "rbe");
|
FILE *f = fopen(ETC_LDSO_PATH, "rbe");
|
||||||
if (f) {
|
if (f) {
|
||||||
if (getdelim(&sys_path, (size_t[1]){0}, 0, f) <= 0) {
|
if (getdelim(&sys_path, (size_t[1]){0}, 0, f) <= 0) {
|
||||||
if (sys_path) free(sys_path);
|
free(sys_path);
|
||||||
sys_path = "";
|
sys_path = "";
|
||||||
}
|
}
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user