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

« Учитесь... || может быть и... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home