vhost-user-input: use free(elem) instead of g_free(elem)