X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Finstall.c;h=cfbd50ead954c93e518f19d05be6ef7f6402f5fe;hp=7443973502e6177ad0794304be3bfe716d7eb5b1;hb=dad503169b2665ecfd3f5bfb3c936897e44ecca7;hpb=f975e971accc4d50c73ae53167db3df7a7099cf2 diff --git a/src/install.c b/src/install.c index 744397350..cfbd50ead 100644 --- a/src/install.c +++ b/src/install.c @@ -479,7 +479,6 @@ static int find_symlinks_fd( t = path_make_absolute(name, config_path); if (!t) { free(p); - free(dest); r = -ENOMEM; break; } @@ -1905,7 +1904,7 @@ int unit_file_get_list( } else if (r > 0) { f->state = UNIT_FILE_DISABLED; goto found; - } else if (r == 0) { + } else { f->state = UNIT_FILE_STATIC; goto found; }