projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
551838c
)
Plugged all memory leaks.
220/head
author
NHOrus
<jy6x2b32pie9@yahoo.com>
Fri, 7 Jul 2017 09:07:52 +0000
(12:07 +0300)
committer
NHOrus
<jy6x2b32pie9@yahoo.com>
Fri, 7 Jul 2017 09:07:52 +0000
(12:07 +0300)
Now all tests pass under ASan or Valgrind.
main.c
patch
|
blob
|
history
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);