diff --git a/project_euler/problem_13/sol1.c b/project_euler/problem_13/sol1.c index cc34d7a4..b3420672 100644 --- a/project_euler/problem_13/sol1.c +++ b/project_euler/problem_13/sol1.c @@ -140,6 +140,9 @@ numbers. For safety, we make it twice the length of a number. */ if (!fp) { perror("Unable to open file 'num.txt'."); + free(txt_buffer); + free(sum); + free(number); return -1; }