forked from pool/libselinux
12 lines
283 B
Diff
12 lines
283 B
Diff
--- src/label_file.c
|
|
+++ src/label_file.c
|
|
@@ -299,6 +299,8 @@
|
|
COMPAT_LOG(SELINUX_WARNING,
|
|
"%s: line %d is missing fields, skipping\n", path,
|
|
lineno);
|
|
+ if (items == 1)
|
|
+ free(regex);
|
|
return 0;
|
|
} else if (items == 2) {
|
|
/* The type field is optional. */
|