From 9f331e0c582e826315f43893249e7162c5a0cae7 Mon Sep 17 00:00:00 2001 From: flykhan Date: Tue, 25 Jul 2023 09:09:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20free()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- day1/homework/h4.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/day1/homework/h4.cpp b/day1/homework/h4.cpp index 60c584d..8f79291 100644 --- a/day1/homework/h4.cpp +++ b/day1/homework/h4.cpp @@ -36,5 +36,9 @@ int main() p = p->next; } + free(fn1); + free(fn2); + free(fn3); + free(head); return 0; }