Fix princflags memory management Fix some out of memory error cases (found by Coverity) that could cause multiple frees or freeing of invalid pointers. In krb5_flagnum_to_string(), don't assume that asprintf() stores a null pointer on failure (it does in BSD but not in glibc). In krb5_flags_to_strings(), free the correct pointer in the cleanup loop in on error. https://github.com/krb5/krb5/commit/dd5f948614b6662fc40dc8de3f567078cfe6295e Author: Tom Yu Commit: dd5f948614b6662fc40dc8de3f567078cfe6295e Branch: master src/lib/kadm5/str_conv.c | 18 ++++++++++-------- src/tests/t_princflags.py | 13 +++++++++++++ 2 files changed, 23 insertions(+), 8 deletions(-)