mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-04 21:29:21 +00:00
Own the fault string in xmlrpc_error_c
xmlrpc_env_set_fault frees the buffer the pointer came from.
This commit is contained in:
+2
-2
@@ -27,11 +27,11 @@ public:
|
|||||||
virtual ~xmlrpc_error_c() throw() {}
|
virtual ~xmlrpc_error_c() throw() {}
|
||||||
|
|
||||||
virtual int type() const throw() { return m_type; }
|
virtual int type() const throw() { return m_type; }
|
||||||
virtual const char* what() const throw() { return m_msg; }
|
virtual const char* what() const throw() { return m_msg.c_str(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int m_type;
|
int m_type;
|
||||||
const char* m_msg;
|
std::string m_msg;
|
||||||
};
|
};
|
||||||
|
|
||||||
torrent::Object xmlrpc_to_object(xmlrpc_env* env, xmlrpc_value* value, int call_type = 0, rpc::target_type* target = NULL, std::function<void()>* deleter = NULL);
|
torrent::Object xmlrpc_to_object(xmlrpc_env* env, xmlrpc_value* value, int call_type = 0, rpc::target_type* target = NULL, std::function<void()>* deleter = NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user