[krbdev.mit.edu #8750] Resource leak in ktutil_add()
Bean Zhang via RT
rt-comment at KRBDEV-PROD-APP-1.mit.edu
Thu Oct 11 14:34:11 EDT 2018
Hi Team,
In ktutil_add() of krb5-1.16.1/src/kadmin/ktutil/ktutil_funcs.c,
In the first 3 places to call malloc(), if the first place calling malloc() succeeds,
then the 2nd or 3rd place fails, it just returns ENOMEM without freeing the memory allocated in first place.
Could someone help to take a look?
Thanks,
Bean
More information about the krb5-bugs
mailing list