Mooophy / Cpp-Primer

C++ Primer 5 answers
Creative Commons Zero v1.0 Universal
8.11k stars 3k forks source link

exercise12.8 memory leakage reason? #799

Open ijpq opened 3 years ago

ijpq commented 3 years ago

the memory leakage occurs because of local pointer would be destroy when caller returned, but rather its return type is converted to bool,i think.

Sent from PPHub