When do you think the buffer pointed by
full_msg.c_str()
is destroyed?
full_msg.c_str()
is destroyed?