Martin Ettl <ettl DOT martin AT gmx DOT de>: Fix various resource and memory leaks
[reactos.git] / reactos / base / applications / network / telnet / src / tnetwork.h
index 64dfb11..bcc78c7 100644 (file)
@@ -24,7 +24,7 @@ public:
        TNetwork(SOCKET s = 0): socket(s), local_echo(1), line_mode(1),
                net_type(TN_NETSOCKET), naws_func((Naws_func_t)NULL),
                local_address((char *)NULL) {}
-       ~TNetwork() {if(local_address) delete local_address;}
+       ~TNetwork() {if(local_address) delete[] local_address;}
 
        void SetSocket(SOCKET s);
        SOCKET GetSocket() {return socket;}