summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChere Zhou <czhou@isilon.com>2008-05-30 13:16:51 -0700
committerJeremy Allison <jra@samba.org>2008-05-30 17:55:14 -0700
commit70b37891f9f3f065254c61ec6c5741592d0b3735 (patch)
tree0ed2bce3a5a281e3824a5258944a22a587d7313b
parent4408fdaf29c2e3ddb240aca2f70316d875f68c35 (diff)
downloadsamba-70b37891f9f3f065254c61ec6c5741592d0b3735.tar.gz
samba-70b37891f9f3f065254c61ec6c5741592d0b3735.tar.bz2
samba-70b37891f9f3f065254c61ec6c5741592d0b3735.zip
minor memory leak fix
(This used to be commit 0c61631f345436bf88e93219c139af8cfbeea18b)
-rw-r--r--source3/libsmb/asn1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/asn1.c b/source3/libsmb/asn1.c
index 39413e252e..aca1c48841 100644
--- a/source3/libsmb/asn1.c
+++ b/source3/libsmb/asn1.c
@@ -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);