]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
minor memory leak fix
authorChere Zhou <czhou@isilon.com>
Fri, 30 May 2008 20:16:51 +0000 (13:16 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 31 May 2008 00:55:14 +0000 (17:55 -0700)
(This used to be commit 0c61631f345436bf88e93219c139af8cfbeea18b)

source3/libsmb/asn1.c

index 39413e252ec9e5e97bcecaa312258c58b39610fe..aca1c488413041ada7a0f9b2806f6fb6e3379b2d 100644 (file)
@@ -425,6 +425,7 @@ bool asn1_check_OID(ASN1_DATA *data, const char *OID)
 
        if (strcmp(id, OID) != 0) {
                data->has_error = true;
+               free(id);
                return false;
        }
        free(id);