commit | 0a0d05528349ae5b13fe21a9a3bfd9ea147fa128 | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Sat Jan 21 15:26:11 2017 +0100 |
committer | James Carter <jwcart2@tycho.nsa.gov> | Mon Jan 23 11:26:34 2017 -0500 |
tree | 1191b89c785affc48c474858f8d95ae2ceeaecc2 | |
parent | aa1a8a3c84d9c04fcf0b53b1bfdbefa502cc22f1 [diff] |
checkpolicy: fix memory leaks in define_filename_trans() When parsing type_transition statements with names, the memory allocated by the type set bitmaps of variable stypes and ttypes was never freed. Call type_set_destroy() to free this memory and, while at it, make the function exits without leaking memory when exiting with an error. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>