commit | d88657bc4d3407208d4f37665d12715368810561 | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Mon Apr 10 21:11:48 2017 +0200 |
committer | Stephen Smalley <sds@tycho.nsa.gov> | Wed Apr 12 14:20:30 2017 -0400 |
tree | 22f247b57d513421e8158aa01b78f7ebc352d72d | |
parent | 8ccd0db8609cc372eaf96beb48f09decd3106b6a [diff] |
libsepol: do not leak memory when an error occurs name_list_to_string() and constraint_expr_to_string() both define an exit label to clean-up dynamically-allocated memory when an error occurs, but they miss some variables. Free the missing ones too. This issue has been found using clang's static analyzer. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>