Author: metze Date: 2007-04-20 11:02:45 +0000 (Fri, 20 Apr 2007) New Revision: 22405
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22405 Log: fix memory leak in error path metze Modified: branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c Changeset: Modified: branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c =================================================================== --- branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c 2007-04-20 11:00:20 UTC (rev 22404) +++ branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c 2007-04-20 11:02:45 UTC (rev 22405) @@ -186,6 +186,7 @@ status = ldap_decode(&asn1, msg); if (!NT_STATUS_IS_OK(status)) { + asn1_free(&asn1); return status; }
