Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information