From 0042d641dc1bafcdf9447f35a6e371aaa6a239c2 Mon Sep 17 00:00:00 2001 From: NHOrus Date: Fri, 7 Jul 2017 12:07:52 +0300 Subject: [PATCH] Plugged all memory leaks. Now all tests pass under ASan or Valgrind. --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index b788c61..f7929a3 100644 --- a/main.c +++ b/main.c @@ -1050,6 +1050,7 @@ L2600: } if (strcmp(input, "") != 0) break; + free(input); } strncpy(inputbuf, input, LINESIZE - 1); -- 2.31.1