[svn] ksba - r263 - trunk/src
svn author marcus
cvs at cvs.gnupg.org
Thu Dec 21 00:29:38 CET 2006
Author: marcus
Date: 2006-12-21 00:29:37 +0100 (Thu, 21 Dec 2006)
New Revision: 263
Modified:
trunk/src/ChangeLog
trunk/src/reader.c
Log:
2006-12-20 Marcus Brinkmann <marcus at g10code.de>
* reader.c (ksba_reader_release): Release R->u.mem.buffer if type
is READER_TYPE_MEM.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2006-12-20 23:02:05 UTC (rev 262)
+++ trunk/src/ChangeLog 2006-12-20 23:29:37 UTC (rev 263)
@@ -1,5 +1,8 @@
2006-12-20 Marcus Brinkmann <marcus at g10code.de>
+ * reader.c (ksba_reader_release): Release R->u.mem.buffer if type
+ is READER_TYPE_MEM.
+
* cms.c (ksba_cms_release): Release CMS->signer_info.
* cms-parser.c (_ksba_cms_parse_signed_data_part_2): On failure,
release SI.
Modified: trunk/src/reader.c
===================================================================
--- trunk/src/reader.c 2006-12-20 23:02:05 UTC (rev 262)
+++ trunk/src/reader.c 2006-12-20 23:29:37 UTC (rev 263)
@@ -59,6 +59,8 @@
{
if (!r)
return;
+ if (r->type == READER_TYPE_MEM)
+ xfree (r->u.mem.buffer);
xfree (r->unread.buf);
xfree (r);
}
More information about the Gnupg-commits
mailing list