Free cursor in send_message() instead of do_gle_op()

Rather than free the cursor in multiple places where do_gle_op() may return, we can free it once after the single call to do_gle_op() in send_message().
WIP fix memory leaks
Dump GDB backtrace on Travis CI