[svn] assuan - r304 - trunk/src
svn author wk
cvs at cvs.gnupg.org
Tue Sep 29 15:48:15 CEST 2009
Author: wk
Date: 2009-09-29 15:48:15 +0200 (Tue, 29 Sep 2009)
New Revision: 304
Modified:
trunk/src/ChangeLog
trunk/src/assuan.c
Log:
Allow apssing NULL to assuan_release.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2009-09-21 01:08:08 UTC (rev 303)
+++ trunk/src/ChangeLog 2009-09-29 13:48:15 UTC (rev 304)
@@ -1,3 +1,7 @@
+2009-09-29 Werner Koch <wk at g10code.com>
+
+ * assuan.c (assuan_release): Allow passing a NULL ctx.
+
2009-09-19 Marcus Brinkmann <marcus at g10code.de>
* src/libassuan.vers, src/libassuan.def: Update to new API.
Modified: trunk/src/assuan.c
===================================================================
--- trunk/src/assuan.c 2009-09-21 01:08:08 UTC (rev 303)
+++ trunk/src/assuan.c 2009-09-29 13:48:15 UTC (rev 304)
@@ -168,10 +168,13 @@
void
assuan_release (assuan_context_t ctx)
{
- TRACE (ctx, ASSUAN_LOG_CTX, "assuan_release", ctx);
-
- _assuan_reset (ctx);
- /* None of the members that are our responsibility requires
- deallocation. */
- _assuan_free (ctx, ctx);
+ if (ctx)
+ {
+ TRACE (ctx, ASSUAN_LOG_CTX, "assuan_release", ctx);
+
+ _assuan_reset (ctx);
+ /* None of the members that are our responsibility requires
+ deallocation. */
+ _assuan_free (ctx, ctx);
+ }
}
More information about the Gnupg-commits
mailing list