From 534694645d01332ab26f62b4f0ad81dad85dd05e Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 12 Sep 2013 19:40:01 +0200 Subject: [PATCH] counteract the tfree(macro_str) introduced in 'inpcom.c: plug memory leaks' this one: commit 810f72f850f8177275f17fc635d97b71b911ec0d Author: h_vogt Date: Sun Sep 8 13:01:26 2013 +0200 inpcom.c: plug memory leaks --- src/frontend/inpcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index b387bb362..691590745 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -3000,7 +3000,7 @@ inp_do_macro_param_replace(struct function *fcn, char *params[]) for (i = 0; i < fcn->num_parameters; i++) { if (curr_str == NULL) { - search_ptr = curr_ptr = fcn->macro; + search_ptr = curr_ptr = strdup(fcn->macro); } else { search_ptr = curr_ptr = curr_str; curr_str = NULL;