Plugged all memory leaks. 220/head
authorNHOrus <jy6x2b32pie9@yahoo.com>
Fri, 7 Jul 2017 09:07:52 +0000 (12:07 +0300)
committerNHOrus <jy6x2b32pie9@yahoo.com>
Fri, 7 Jul 2017 09:07:52 +0000 (12:07 +0300)
Now all tests pass under ASan or Valgrind.

main.c

diff --git a/main.c b/main.c
index b788c618e65428352c0a5f9be4a619ecb194baaa..f7929a36a55e1253275e48e7fd711db3539600d9 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1050,6 +1050,7 @@ L2600:
             }
             if (strcmp(input, "") != 0)
                 break;
+            free(input);
         }
 
         strncpy(inputbuf, input, LINESIZE - 1);