Fixed memory leaks

This commit is contained in:
Arnout Engelen
2005-01-15 15:03:20 +00:00
parent 4ce9f4fb1f
commit a142648f45
8 changed files with 112 additions and 68 deletions

View File

@@ -66,16 +66,18 @@ public:
assert (uid >= 0);
}
}
/* TODO free m_name and m_devicename again in constructor */
~Process ()
{
free (name);
free (devicename);
if (DEBUG)
std::cout << "PROC: Process deleted at " << this << std::endl;
}
int getLastPacket ();
const char * name;
const char * devicename;
char * name;
char * devicename;
int pid;
unsigned long inode;