Fixed leaks in /affiliation and /role
Free datetime on ping errors
Removed hash_table_iter usage for room roster