REmoved the mem free from send_msg function