Browse Source

Two memory leaks found interactively with valgrind with safe fixes.

pre-master-46
Giles Atkinson 4 years ago
committed by Holger Vogt
parent
commit
40c2419a43
  1. 1
      src/frontend/arg.c
  2. 2
      src/frontend/variable.c

1
src/frontend/arg.c

@ -133,6 +133,7 @@ static void common(const char *string, const struct wordlist *wl,
w = process(w);
/* O.K. now call fn */
command->co_func(w);
wl_free(w);
}
} /* end of function common */

2
src/frontend/variable.c

@ -1156,6 +1156,8 @@ void cp_vprint(void)
out_printf("( %s )\n", s);
else
out_printf("%s\n", s);
wl_free(wl);
tfree(s);
}
}

Loading…
Cancel
Save