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=refs%2Fmerge-requests%2F220%2Fhead;hp=551838cea217e3d9df11dcaea52c42b02449de91;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);