(get_cell_and_realm): plug a memory leak, found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16942 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -94,6 +94,7 @@ get_cell_and_realm (krb5_context context,
|
||||
f = fopen (AFS_SERVERMAGICKRBCONF, "r");
|
||||
if (f != NULL) {
|
||||
if (fgets (buf, sizeof(buf), f) == NULL) {
|
||||
free (d->cell);
|
||||
fclose (f);
|
||||
krb5_set_error_string (context, "no realm in %s",
|
||||
AFS_SERVERMAGICKRBCONF);
|
||||
|
Reference in New Issue
Block a user