Browse Source

counteract the tfree(macro_str) introduced in 'inpcom.c: plug memory leaks'

this one:
commit 810f72f850
Author: h_vogt <h_vogt>
Date:   Sun Sep 8 13:01:26 2013 +0200

    inpcom.c: plug memory leaks
pre-master-46
rlar 13 years ago
parent
commit
534694645d
  1. 2
      src/frontend/inpcom.c

2
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;

Loading…
Cancel
Save