zhedahht / CodingInterviewChinese2

《剑指Offer:名企面试官精讲典型编程面试题》第二版源代码
Other
5.32k stars 2.17k forks source link

revise 12_StringPathInMatrix #20

Open imLogM opened 6 years ago

imLogM commented 6 years ago

"12_StringPathInMatrix.cpp" do not release pointer "visited" if path is found.

"12_StringPathInMatrix.cpp" 中,当path被找到时,函数直接return,指针"visited"没有正确被释放