If you allocate memory with malloc() you should deallocate it with free(), strdup() allocates with malloc() so use free() to deallocate it :).

--HG--
branch : trunk
This commit is contained in:
Anubisss
2010-06-11 01:30:46 +02:00
parent 6da05ec5d1
commit f3bf8f8778

View File

@@ -254,7 +254,7 @@ void RASocket::zprint( const char * szText )
unsigned int sz=strlen(megabuffer);
Encrypt(megabuffer,sz);
send(r,megabuffer,sz,0);
delete [] megabuffer;
free(megabuffer);
#else