From: NHOrus Date: Fri, 7 Jul 2017 09:07:52 +0000 (+0300) Subject: Plugged all memory leaks. X-Git-Tag: 2017-07-10~34 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=0042d641dc1bafcdf9447f35a6e371aaa6a239c2;p=open-adventure.git Plugged all memory leaks. Now all tests pass under ASan or Valgrind. --- 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);