[ltrace-commits] 01/01: Fix a memory leak in parse_typedef_name

Petr Machata pmachata-guest at moszumanska.debian.org
Mon May 4 19:49:08 UTC 2015


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

pmachata-guest pushed a commit to branch master
in repository ltrace.

commit 70668347a34303147f43c57fe7d6c76e3afbbf05
Author: Роман Донченко <dpb at corrigendum.ru>
Date:   Mon Apr 27 21:20:34 2015 +0300

    Fix a memory leak in parse_typedef_name
---
 read_config_file.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/read_config_file.c b/read_config_file.c
index a48eccf..967bd00 100644
--- a/read_config_file.c
+++ b/read_config_file.c
@@ -387,6 +387,7 @@ parse_typedef_name(struct protolib *plib, struct locus *loc, char **str)
 		return NULL;
 
 	struct named_type *nt = protolib_lookup_type(plib, buf, true);
+	free(buf);
 	if (nt == NULL)
 		return NULL;
 	return nt->info;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/ltrace.git



More information about the ltrace-commits mailing list