summaryrefslogtreecommitdiff
path: root/wk4/lect/copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'wk4/lect/copy.c')
-rw-r--r--wk4/lect/copy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wk4/lect/copy.c b/wk4/lect/copy.c
index a9ddd33..7601d04 100644
--- a/wk4/lect/copy.c
+++ b/wk4/lect/copy.c
@@ -32,4 +32,7 @@ int main(void)
printf("%p\n", s);
printf("%p\n", t);
+
+ free(t); // frees the memory allocated by malloc
+ return 0;
}