[svn] ksba - r264 - trunk/src
svn author marcus
cvs at cvs.gnupg.org
Thu Dec 21 00:51:49 CET 2006
Author: marcus
Date: 2006-12-21 00:51:48 +0100 (Thu, 21 Dec 2006)
New Revision: 264
Modified:
trunk/src/ChangeLog
trunk/src/ber-decoder.c
trunk/src/cert.c
Log:
2006-12-21 Marcus Brinkmann <marcus at g10code.de>
* cert.c (ksba_cert_release): Release CERT->image.
* ber-decoder.c (release_decoder_state): Release D->image.buf on
error.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2006-12-20 23:29:37 UTC (rev 263)
+++ trunk/src/ChangeLog 2006-12-20 23:51:48 UTC (rev 264)
@@ -1,3 +1,9 @@
+2006-12-21 Marcus Brinkmann <marcus at g10code.de>
+
+ * cert.c (ksba_cert_release): Release CERT->image.
+ * ber-decoder.c (release_decoder_state): Release D->image.buf on
+ error.
+
2006-12-20 Marcus Brinkmann <marcus at g10code.de>
* reader.c (ksba_reader_release): Release R->u.mem.buffer if type
Modified: trunk/src/ber-decoder.c
===================================================================
--- trunk/src/ber-decoder.c 2006-12-20 23:29:37 UTC (rev 263)
+++ trunk/src/ber-decoder.c 2006-12-20 23:51:48 UTC (rev 264)
@@ -1202,6 +1202,9 @@
if (gpg_err_code (err) == GPG_ERR_EOF)
err = 0;
+ if (err)
+ xfree (d->image.buf);
+
if (r_root && !err)
{
if (!d->image.buf)
Modified: trunk/src/cert.c
===================================================================
--- trunk/src/cert.c 2006-12-20 23:29:37 UTC (rev 263)
+++ trunk/src/cert.c 2006-12-20 23:51:48 UTC (rev 264)
@@ -121,7 +121,9 @@
_ksba_asn_release_nodes (cert->root);
ksba_asn_tree_release (cert->asn_tree);
-
+
+ xfree (cert->image);
+
xfree (cert);
}
More information about the Gnupg-commits
mailing list