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