summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-04-20 11:02:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:51:15 -0500
commit1c8b46bb7236edac23de83d1d8de7244e4044a81 (patch)
tree1bd9eef3cf9037e0ffeff71d0d9ad4fedd9c34a9
parent44760c3e6f206a24a298406f88354a069c36245c (diff)
downloadsamba-1c8b46bb7236edac23de83d1d8de7244e4044a81.tar.gz
samba-1c8b46bb7236edac23de83d1d8de7244e4044a81.tar.bz2
samba-1c8b46bb7236edac23de83d1d8de7244e4044a81.zip
r22405: fix memory leak in error path
metze (This used to be commit d19195bfa5405822613d5236cd76547f0ac77bde)
-rw-r--r--source4/libcli/ldap/ldap_client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/libcli/ldap/ldap_client.c b/source4/libcli/ldap/ldap_client.c
index 8852fd5427..39f265015a 100644
--- a/source4/libcli/ldap/ldap_client.c
+++ b/source4/libcli/ldap/ldap_client.c
@@ -186,6 +186,7 @@ static NTSTATUS ldap_recv_handler(void *private_data, DATA_BLOB blob)
status = ldap_decode(&asn1, msg);
if (!NT_STATUS_IS_OK(status)) {
+ asn1_free(&asn1);
return status;
}