index
:
k&r-exercises
master
Solutions to the exercises in K&R from my days of learning C.
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
5/3.c
3
1 files changed, 3 insertions, 0 deletions
diff --git a/5/3.c b/5/3.c
index ff4c02d..3a4a2a6 100644
--- a/
5/3.c
+++ b/
5/3.c
@@ -23,6 +23,9 @@ int main(int argc, char *argv[]) {
mstrcat(s, t);
printf("strcat: %s\n", s);
+
+ free(s);
+ free(t);
return 0;
}