commit | d7b0941eed3e9f4cee800eff064c9a10e038a0d7 | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Mon Dec 26 22:18:28 2016 +0100 |
committer | Stephen Smalley <sds@tycho.nsa.gov> | Mon Jan 09 15:01:33 2017 -0500 |
tree | e25c7733cfd4758e0945424ad560a1d2187f8751 | |
parent | 14f07097c33eea67ae5c00d4e4d14d51305d89cc [diff] |
checkpolicy: fix memory usage in define_bool_tunable() In an error path of define_bool_tunable(), variable id is freed after being used by a successful call to declare_symbol(). This may cause trouble as this pointer may have been used as-is in the policy symtab hash table. Moreover bool_value is never freed after being used. Fix this memory leak too. This leak has been detected with gcc Address Sanitizer. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>