Fix potential memory leaks and crashes.

This commit is contained in:
Jan Vidar Krey
2009-11-18 17:41:28 +01:00
parent f4e82ef503
commit 00995a1946
12 changed files with 97 additions and 27 deletions

View File

@@ -101,9 +101,10 @@ int uman_init(struct hub_info* hub)
if (!users->list)
{
list_destroy(users->list);
hub_free(users);
return -1;
}
hub->users = users;
#ifdef USERMANAGER_TIMER