[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[SVN/SVNDataObject.cpp:377]: Possible memory leak

From: Daniel Marjamäki <daniel.marjamaki_at_gmail.com>
Date: Sun, 19 Oct 2008 17:38:04 +0200

This code is a bit dangerous:

        FORMATETC* fetc = new FORMATETC;
        STGMEDIUM* pStgMed = new STGMEDIUM;

        if ((fetc == NULL) || (pStgMed == NULL))
                return E_OUTOFMEMORY;

If either fetc or pStgMed is NULL, then there will be no deallocation.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: dev-help_at_tortoisesvn.tigris.org
Received on 2008-10-19 17:40:44 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.