]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix recent memory leak in locate_kdc.c 473/head
authorGreg Hudson <ghudson@mit.edu>
Tue, 21 Jun 2016 22:46:28 +0000 (18:46 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 29 Jun 2016 17:06:35 +0000 (13:06 -0400)
commitebb59a92cc831dfef73dc41f8be6ccee68359300
treee6bd7899924390a8a5fbf90c5a5f379b68d89ba9
parentc969e8a37617e9c7743a28177dd3808f7d08cee9
Fix recent memory leak in locate_kdc.c

Commit ce112dec844e4650b5ad174bd40f21c32aebe1d1 introduced a memory
leak in locate_srv_conf_1() by moving the free(realmstr) call to the
cleanup handler, because there was an early return after realmstr is
allocated.  Convert that early return to a goto.
src/lib/krb5/os/locate_kdc.c