Mooophy/Cpp-Primer

exercise12.8 memory leakage reason?

ijpq opened this issue · 0 comments

ijpq commented

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