[Pkg-gnupg-commit] [libassuan] 249/437: Allow apssing NULL to assuan_release.
Eric Dorland
eric at moszumanska.debian.org
Fri May 22 05:33:49 UTC 2015
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository libassuan.
commit 134e9dbda53618fa3a8be464cabbf65cd27bf09d
Author: Werner Koch <wk at gnupg.org>
Date: Tue Sep 29 13:48:15 2009 +0000
Allow apssing NULL to assuan_release.
---
src/ChangeLog | 4 ++++
src/assuan.c | 15 +++++++++------
2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/ChangeLog b/src/ChangeLog
index 627d369..41253b3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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.
diff --git a/src/assuan.c b/src/assuan.c
index d2c9f17..06b9b8a 100644
--- a/src/assuan.c
+++ b/src/assuan.c
@@ -168,10 +168,13 @@ _assuan_reset (assuan_context_t ctx)
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);
+ }
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/libassuan.git
More information about the Pkg-gnupg-commit
mailing list