fix memory leak in msg_gmmsgid