diff options
| author | Mistivia <i@mistivia.com> | 2025-12-20 04:03:52 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-12-20 04:03:52 +0800 |
| commit | b01124e56ca4cee22649d5a0e885c898685ecf00 (patch) | |
| tree | 24bdb895dae8e7f7dc4e4319564d6e7c8d0c412a /03/part1.c | |
| parent | 8f13f23b1cd9da6140ea391744416e9b3569c88b (diff) | |
day 3 mem leak fix
Diffstat (limited to '03/part1.c')
| -rw-r--r-- | 03/part1.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -39,7 +39,9 @@ int main() { int sum = 0; for (; it != StringVector_end(&lines); it++) { sum += find_max(*it); + free((void*)*it); } printf("%d\n", sum); + StringVector_free(&lines); return 0; }
\ No newline at end of file |
