From 6d5b3eddc1627cbc12fab79654e60c02d989b542 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Fri, 14 Feb 2025 12:06:31 -0800 Subject: [PATCH] fix: memory leak --- src/chapter_6/lab-6/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/chapter_6/lab-6/main.cpp b/src/chapter_6/lab-6/main.cpp index 92dd847..92fed67 100644 --- a/src/chapter_6/lab-6/main.cpp +++ b/src/chapter_6/lab-6/main.cpp @@ -65,4 +65,6 @@ int main() { cout << "[SUCCESS] Output of back() is correct." << endl; cout << "All tests passed!" << endl; + + delete testVec; }