From d977af4cd513ef3e3df847052c120b182a60b88f Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Tue, 19 Sep 2023 00:04:14 -0400 Subject: [PATCH] adding the leak question --- lectures/06_memory/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/06_memory/README.md b/lectures/06_memory/README.md index bd882a7..892e578 100644 --- a/lectures/06_memory/README.md +++ b/lectures/06_memory/README.md @@ -416,7 +416,7 @@ c[1] = b[1]; c = &(a[3]); ``` -See [solution](memory_exercise2_solution.png). Note that there is a memory leak of 3 *int*s in this program. +See [solution](memory_exercise2_solution.png). Note that there is a memory leak of 3 *int*s in this program. Do you see why? - Write code to produce this diagram: