Plugged all memory leaks.

Now all tests pass under ASan or Valgrind.
This commit is contained in:
NHOrus 2017-07-07 12:07:52 +03:00
parent 551838cea2
commit 0042d641dc

1
main.c
View file

@ -1050,6 +1050,7 @@ L2600:
} }
if (strcmp(input, "") != 0) if (strcmp(input, "") != 0)
break; break;
free(input);
} }
strncpy(inputbuf, input, LINESIZE - 1); strncpy(inputbuf, input, LINESIZE - 1);