diff --git a/libselinux/src/label.c b/libselinux/src/label.c index 0e43474c..71a273bd 100644 --- a/libselinux/src/label.c +++ b/libselinux/src/label.c @@ -104,7 +104,7 @@ struct selabel_sub *selabel_subs_init(const char *path, return list; if (fstat(fileno(cfg), &sb) < 0) - return list; + goto out; while (fgets_unlocked(buf, sizeof(buf) - 1, cfg)) { char *ptr = NULL;