Commit db3d7b91 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Fixed some memory leaks.

parent 10a3f8dd
......@@ -89,10 +89,6 @@ logout_client(Connection *cp)
active_connection = real_active_connection;
}
s_clear(&cp->unparsed);
s_clear(&cp->what_am_i_doing);
s_clear(&cp->username);
switch(cp->protocol)
{
case 0: /* Hasn't yet allocated any protocol. */
......@@ -673,7 +669,7 @@ login_request(ISCECB *event)
cp = new_client();
cp->mux = event->session->udg;
cp->hostname = s_fcrea_str(event->session->info.tcp.hostname);
s_crea_str(&cp->hostname, event->session->info.tcp.hostname);
mux_addclient(event->session->udg, 0, cp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment