diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-07-30 08:29:28 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-07-31 14:42:02 +0200 |
commit | 2ef1159c0ddf92d727f7267bec91621be302833e (patch) | |
tree | 7ea15676c3381f44b5c60fc358cf3538db5a350a /lib/util | |
parent | 7d470fdb1b180d63a4e08e7c9d0a88223031053f (diff) | |
download | samba-2ef1159c0ddf92d727f7267bec91621be302833e.tar.gz samba-2ef1159c0ddf92d727f7267bec91621be302833e.tar.bz2 samba-2ef1159c0ddf92d727f7267bec91621be302833e.zip |
util/asn1: fix potential memory leak in asn1_write_OID()
metze
Diffstat (limited to 'lib/util')
-rw-r--r-- | lib/util/asn1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util/asn1.c b/lib/util/asn1.c index 184aeec909..317ee1314c 100644 --- a/lib/util/asn1.c +++ b/lib/util/asn1.c @@ -262,6 +262,7 @@ bool asn1_write_OID(struct asn1_data *data, const char *OID) } if (!asn1_write(data, blob.data, blob.length)) { + data_blob_free(&blob); data->has_error = true; return false; } |