- Fix Memory Leak
This commit is contained in:
parent
d6eb0cea47
commit
2f2316f496
@ -265,7 +265,7 @@ diff --exclude-from=exclude -N -u -r nsalibselinux/src/label_file.c libselinux-2
|
|||||||
"%s: line %d is missing fields, skipping\n", path,
|
"%s: line %d is missing fields, skipping\n", path,
|
||||||
lineno);
|
lineno);
|
||||||
+ if (items == 1)
|
+ if (items == 1)
|
||||||
+ freee(regex);
|
+ free(regex);
|
||||||
return 0;
|
return 0;
|
||||||
} else if (items == 2) {
|
} else if (items == 2) {
|
||||||
/* The type field is optional. */
|
/* The type field is optional. */
|
||||||
|
Loading…
Reference in New Issue
Block a user