mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-12-13 22:48:49 +00:00
Author: Hiroshi Shinji
Email: hiroshi.shinji@gmail.com Subject: Memory leak in libselinux/src/label_file.c Date: Fri, 3 Apr 2009 13:58:01 +0900 Hi, I found memory leak in libselinux/src/label_file.c. Please fix it. Regards, -- Hiroshi Shinji Signed-off-by: Chad Sellers <csellers@tresys.com>
This commit is contained in:
parent
5f1746a17e
commit
a4af847dc6
@ -299,6 +299,8 @@ static int process_line(struct selabel_handle *rec,
|
||||
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. */
|
||||
|
Loading…
Reference in New Issue
Block a user