summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-09-04 00:02:13 +0200
committerGünther Deschner <gd@samba.org>2009-09-04 00:04:49 +0200
commitb35c627b92c0585f4fa3a1d92385a908f0e0cd5b (patch)
tree2ac7062b59b060eaabf19c6a1e2a6e8d7e08465f
parentd9bdf2a02f2966720a573cfa933edb112bf6fe64 (diff)
downloadsamba-b35c627b92c0585f4fa3a1d92385a908f0e0cd5b.tar.gz
samba-b35c627b92c0585f4fa3a1d92385a908f0e0cd5b.tar.bz2
samba-b35c627b92c0585f4fa3a1d92385a908f0e0cd5b.zip
wbinfo: fix various valgrind warnings and an invalid free.
Kai, please check. Guenther
-rw-r--r--nsswitch/wbinfo.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c
index 813846f138..a80b69f2b6 100644
--- a/nsswitch/wbinfo.c
+++ b/nsswitch/wbinfo.c
@@ -1318,7 +1318,6 @@ static bool wbinfo_auth_krb5(char *username, const char *cctype, uint32_t flags)
}
done:
- TALLOC_FREE(frame);
wbcFreeMemory(params.blobs);
return WBC_ERROR_IS_OK(wbc_status);
@@ -1363,8 +1362,6 @@ static bool wbinfo_auth(char *username)
response.data.auth.error_string);
#endif
- TALLOC_FREE(frame);
-
return WBC_ERROR_IS_OK(wbc_status);
}
@@ -1424,7 +1421,7 @@ static bool wbinfo_auth_crap(char *username, bool use_ntlmv2, bool use_lanman)
&lm, &nt, NULL, NULL)) {
data_blob_free(&names_blob);
data_blob_free(&server_chal);
- SAFE_FREE(pass);
+ TALLOC_FREE(pass);
return false;
}
data_blob_free(&names_blob);
@@ -1471,7 +1468,6 @@ static bool wbinfo_auth_crap(char *username, bool use_ntlmv2, bool use_lanman)
data_blob_free(&nt);
data_blob_free(&lm);
- TALLOC_FREE(frame);
return WBC_ERROR_IS_OK(wbc_status);
}
@@ -1650,8 +1646,6 @@ static bool wbinfo_change_user_password(const char *username)
d_printf("Password change for user %s %s\n", username,
WBC_ERROR_IS_OK(wbc_status) ? "succeeded" : "failed");
- TALLOC_FREE(frame);
-
return WBC_ERROR_IS_OK(wbc_status);
}