To allocate or not to allocate. Invalid read of size 1 errors. [Staring for 2 hours]
问题 This is the code I'm working on code However there are problems. Some or all might be because of not allocating space for data in nodes (line 135~) because the line is changing during iteration in main . But when I allocate space for it, at line 135, the outcome doesn't change much and there is memory leak. I'm stuck. I'm about to go crazy. Can you help me to fix errors? Any help is appreciated. Thank you! Output: a@ubuntu:~/os/hw1$ ./o f1.txt f2.txt o.txt *** Error in `./o': double free or