Browse Source

avoid memory leak by appending, not prepending the word

pre-master-46
Holger Vogt 1 year ago
parent
commit
1e4a6ac8b8
  1. 2
      src/frontend/inpcom.c

2
src/frontend/inpcom.c

@ -1296,7 +1296,7 @@ static struct inp_read_t inp_read(FILE* fp, int call_depth, const char* dir_name
add_to_sourcepath(sourcelineinfo, NULL);
}
sourceinfo = wl_cons(sourcelineinfo, sourceinfo);
wl_append_word(&sourceinfo, &sourceinfo, sourcelineinfo);
/* First read in all lines & put them in the struct cc */
for (;;) {

Loading…
Cancel
Save