mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-20 03:35:55 +00:00
fix memory leak
This commit is contained in:
@@ -282,14 +282,14 @@ public:
|
||||
BOOST_LOG_TRIVIAL(error) << __func__ << " : " << ss.str();
|
||||
throw std::runtime_error(ss.str());
|
||||
}
|
||||
cass_tuple_free(tuple);
|
||||
curBindingIndex_++;
|
||||
}
|
||||
|
||||
CassandraStatement()
|
||||
~CassandraStatement()
|
||||
{
|
||||
if (statement_)
|
||||
cass_statement_free(statement_);
|
||||
BOOST_LOG_TRIVIAL(info) << __func__;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -461,6 +461,8 @@ public:
|
||||
{
|
||||
if (result_ != nullptr)
|
||||
cass_result_free(result_);
|
||||
if (iter_ != nullptr)
|
||||
cass_iterator_free(iter_);
|
||||
}
|
||||
};
|
||||
inline bool
|
||||
|
||||
Reference in New Issue
Block a user