You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2015/05/09 21:02:57 UTC
lucy-clownfish git commit: Fix use-after-free in CFCBindClass
Repository: lucy-clownfish
Updated Branches:
refs/heads/master ec7d6e57c -> 2f1e3d82d
Fix use-after-free in CFCBindClass
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/2f1e3d82
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/2f1e3d82
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/2f1e3d82
Branch: refs/heads/master
Commit: 2f1e3d82ddd01b25e5789fc8421dc60955e32636
Parents: ec7d6e5
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sat May 9 21:01:21 2015 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sat May 9 21:01:21 2015 +0200
----------------------------------------------------------------------
compiler/src/CFCBindClass.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/2f1e3d82/compiler/src/CFCBindClass.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCBindClass.c b/compiler/src/CFCBindClass.c
index a69679f..638096b 100644
--- a/compiler/src/CFCBindClass.c
+++ b/compiler/src/CFCBindClass.c
@@ -675,9 +675,9 @@ S_override_decs(CFCBindClass *self) {
= CFCUtil_sprintf(pattern, ret_type_str, override_sym, params);
decs = CFCUtil_cat(decs, callback_dec, NULL);
FREEMEM(callback_dec);
- FREEMEM(override_sym);
nulls = CFCUtil_cat(nulls, "#define ", override_sym, " NULL\n", NULL);
+ FREEMEM(override_sym);
}
char pattern[] =