diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libads/smb_krb5_locator.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/libads/smb_krb5_locator.c b/source3/libads/smb_krb5_locator.c index 9861511714..be14a12697 100644 --- a/source3/libads/smb_krb5_locator.c +++ b/source3/libads/smb_krb5_locator.c @@ -239,7 +239,7 @@ void smb_krb5_locator_close(void *private_data) { DEBUG(10,("smb_krb5_locator_close: called\n")); - gfree_all(); + /* gfree_all(); */ } /** @@ -324,7 +324,7 @@ krb5_error_code smb_krb5_locator_lookup(void *private_data, /* if we didn't found any KDCs on our site go to the main list */ if (NT_STATUS_IS_OK(status) && sitename && (count == 0)) { - ip_list = NULL; + SAFE_FREE(ip_list); SAFE_FREE(sitename); status = get_kdc_list(realm, NULL, &ip_list, &count); } @@ -365,6 +365,8 @@ krb5_error_code smb_krb5_locator_lookup(void *private_data, } } + SAFE_FREE(ip_list); + return ret; } |