Does this leak memory?
Date: 09/15/06
(Code WTF) Keywords: no keywords
template <class T, int shift>
inline Fixed<T, shift>& Fixed<T, shift>::operator+(const Fixed<T, shift>& fixed)
{
Fixed<T, shift> *result = new Fixed<T, shift>(*this);
result->m_value = result->m_value + fixed.m_value;
return *result;
}
source
Source: http://community.livejournal.com/code_wtf/51908.html