diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-11 03:09:14 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-11 03:09:14 +0000 |
commit | 56b9405b77fe47ee413312411c28cb3f22e44433 (patch) | |
tree | 2b716c6c5e18b55ce80befa1fb6bada2f01907ee /wk5/lect | |
parent | ffdc859602fd807876b55001b10a424f448717d4 (diff) |
Wed, Apr 10, 2024, 8:09 PM -07:00
Diffstat (limited to 'wk5/lect')
-rw-r--r-- | wk5/lect/list.c | 1 |
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; } |