summaryrefslogtreecommitdiff
path: root/wk5
diff options
context:
space:
mode:
Diffstat (limited to 'wk5')
-rw-r--r--wk5/lect/list.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wk5/lect/list.c b/wk5/lect/list.c
index 5ccfe7f..d9a8afa 100644
--- a/wk5/lect/list.c
+++ b/wk5/lect/list.c
@@ -16,6 +16,7 @@ int main(void)
int *tmp = malloc(4 * sizeof(int));
if (list == NULL)
{
+ free(list);
return 1;
}