Fix autotest crash.

This commit is contained in:
Jan Vidar Krey 2010-02-11 01:18:45 +01:00
parent bf1b64db53
commit 56605f7dcb

View File

@ -42,7 +42,6 @@ static void inf_create_user()
{ {
if (inf_user) return; if (inf_user) return;
inf_user = (struct hub_user*) hub_malloc_zero(sizeof(struct hub_user)); inf_user = (struct hub_user*) hub_malloc_zero(sizeof(struct hub_user));
inf_user->connection = net_con_create();
inf_user->id.sid = 1; inf_user->id.sid = 1;
inf_user->limits.upload_slots = 1; inf_user->limits.upload_slots = 1;
} }
@ -50,7 +49,6 @@ static void inf_create_user()
static void inf_destroy_user() static void inf_destroy_user()
{ {
if (!inf_user) return; if (!inf_user) return;
hub_free(inf_user->connection);
hub_free(inf_user); hub_free(inf_user);
inf_user = 0; inf_user = 0;
} }