[krbdev.mit.edu #8750] Resource leak in ktutil_add()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[krbdev.mit.edu #8750] Resource leak in ktutil_add()

Greg Hudson via RT-2
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?


krb5-bugs mailing list
[hidden email]