Commit 25440255 authored by Geoff Simmons's avatar Geoff Simmons

Return safely allocated error messages from AMQ_Connection.

This leaks memory; apparently it has been an unsafe practice all
along. But support for ActiveMQ will be discontinued anyway.
parent e738e0d0
......@@ -34,7 +34,8 @@
#define CATCHALL \
catch (CMSException& cex) { \
return cex.what(); \
string *msg = new string(cex.getMessage()); \
return msg->c_str(); \
} \
catch (Throwable& th) { \
return th.what(); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment