- Fix Memory Leak

This commit is contained in:
Daniel J Walsh 2009-04-03 14:05:22 +00:00
parent d6eb0cea47
commit 2f2316f496

View File

@ -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,
lineno);
+ if (items == 1)
+ freee(regex);
+ free(regex);
return 0;
} else if (items == 2) {
/* The type field is optional. */