Browse Source

fix a small memory leak

pre-master-46
Holger Vogt 8 years ago
parent
commit
8c9b18ef7e
  1. 4
      src/frontend/resource.c

4
src/frontend/resource.c

@ -423,7 +423,9 @@ printres(char *name)
if (name && v) { if (name && v) {
#endif #endif
fprintf(cp_out, "%s = ", v->va_name); fprintf(cp_out, "%s = ", v->va_name);
wl_print(cp_varwl(v), cp_out);
wordlist *wltmp = cp_varwl(v);
wl_print(wltmp, cp_out);
wl_free(wltmp);
(void) putc('\n', cp_out); (void) putc('\n', cp_out);
yy = TRUE; yy = TRUE;
} else if (v) { } else if (v) {

Loading…
Cancel
Save