commit | 322888962031c787327bad9dfd925d8123223476 | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Mon Feb 27 21:39:30 2017 +0100 |
committer | James Carter <jwcart2@tycho.nsa.gov> | Wed Mar 01 10:42:16 2017 -0500 |
tree | 054853c4127c786e32d9617a51ba9081a5867931 | |
parent | ed51e23f159a6af69d0b1ed89b1e237ed180aa21 [diff] |
semodule_package: do not leak memory when using -u or -s When using -u and -s options, semodule_package's main() allocates user_extra and seusers to hold the argument values. These allocated memory blocks are not freed when main() exits, which leads gcc's Address Sanitizer to report a memory leak. This occurs for example when building refpolicy base.pp module. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>