From 8e5f2154b2655afd8d184c3c5068543bdba42024 Mon Sep 17 00:00:00 2001 From: ZHANG ZHUO Date: Tue, 20 Jun 2017 14:16:46 +0800 Subject: [PATCH] fix an stupid bug when using r_str_newf --- libr/egg/egg_lang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libr/egg/egg_lang.c b/libr/egg/egg_lang.c index 0271b81b493ed..bbd9e6cf07d03 100644 --- a/libr/egg/egg_lang.c +++ b/libr/egg/egg_lang.c @@ -1358,7 +1358,7 @@ R_API int r_egg_lang_parsechar(REgg *egg, char c) { e->jmp (egg, tmp_ptr, 0); R_FREE (tmp_ptr); // mem leak ifelse_table[CTX - 1][nestedi[CTX - 1] - 1] = - r_str_newf (str, 64, "__end_%d_%d_%d", + r_str_newf ("__end_%d_%d_%d", nfunctions, CTX - 1, nestedi[CTX - 1] - 1); } // if (nestede[CTX]) {