[Pkg-privacy-commits] [libotr] 85/225: Fix memory leak in otrl_auth_handle_signature

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 12:45:00 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository libotr.

commit 0679336f039f5f3b431cf44405b4c3c5850a1fef
Author: Ian Goldberg <iang at cs.uwaterloo.ca>
Date:   Thu Jul 19 09:46:16 2012 -0400

    Fix memory leak in otrl_auth_handle_signature
    
    Thanks to Paul Wouters <paul at cypherpunks.ca> for the report.
---
 src/auth.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/auth.c b/src/auth.c
index 865032a..764d132 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -1110,6 +1110,8 @@ gcry_error_t otrl_auth_handle_signature(OtrlAuthInfo *auth,
 	case OTRL_AUTHSTATE_V1_SETUP:
 	    /* Ignore this message */
 	    *havemsgp = 0;
+	    free(buf);
+	    buf = NULL;
 	    break;
     }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/libotr.git



More information about the Pkg-privacy-commits mailing list