avoid memory leak by appending, not prepending the word
This commit is contained in:
parent
a6ad2470f1
commit
1e4a6ac8b8
|
|
@ -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…
Reference in New Issue