[Pkg-privacy-commits] [libotr] 191/225: Fix memory leak
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 12:45:30 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 d5340738d954d55ba900fa28864c5c4ca46ab4d1
Author: Julien Voisin <julien.voisin at dustri.org>
Date: Thu Feb 20 15:40:40 2014 +0000
Fix memory leak
Fixes #18
Acked-by: David Goulet <dgoulet at ev0ke.net>
Signed-off-by: Julien Voisin <julien.voisin at dustri.org>
---
src/proto.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/proto.c b/src/proto.c
index 4512e91..f3fb10c 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -466,6 +466,7 @@ gcry_error_t otrl_proto_instance(const char *otrmsg,
free(bufp_head);
return gcry_error(GPG_ERR_NO_ERROR);
invval:
+ free(bufp_head);
err = gcry_error(GPG_ERR_INV_VALUE);
return err;
}
--
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