I'm trying to debug a program that gives the error: Abort (core dumped). Valgrind detects a stack smashing and gives a LEAK SUMMARY with 1 block still reachable. It signals to line 12 of a the function downloadAndOpen where I have an fopen that I thought was closed at the end of main but it seems like it isn't. I would appreciate help with this bug. The valgrind output is:I'm trying to debug a program that gives the er