As a side note the ifs are useless anyway since delete 0 is perfectly legal.

Franz


Kamlesh kumar schrieb:
SOAPTransport.h defines two member variables
m_pcUsername and m_pcPassword.

However, they are not set to NULL in the constructor
and so causes the following piece of code to segfault
since m_pcUsername and m_pcPassword could be pointing
to random memory address.
virtual ~SOAPTransport()
    {
        if (m_pcUsername)
        {
            delete[]m_pcUsername;
            m_pcUsername = NULL;
        }
        if (m_pcPassword)
        {
            delete[]m_pcPassword;
            m_pcPassword = NULL;
        }
    };



__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


begin:vcard
fn:Dr. Franz Fehringer
n:Fehringer;Franz
org:ISO Software Systeme
adr;quoted-printable:;;Eichendorffstrasse 29;N=C3=BCrnberg;;90491;Deutschland
email;internet:mailto:[EMAIL PROTECTED]
tel;work:+49/(911) - 99594-0 
tel;fax:+49/(911) - 99594-580
x-mozilla-html:TRUE
url:http://www.isogmbh.de/
version:2.1
end:vcard


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to