Commit 2f1be97c authored by Ronan's avatar Ronan
Browse files

fix(c-tools): fix a memory leak on getResolvedCListFromCppList

parent d8e81d63
......@@ -562,7 +562,7 @@ public:
static inline bctbx_list_t *getResolvedCListFromCppList (const std::list<CppType> &cppList) {
bctbx_list_t *result = nullptr;
for (const auto &value : cppList)
result = bctbx_list_append(result, belle_sip_object_ref(getCBackPtr(&value)));
result = bctbx_list_append(result, getCBackPtr(&value));
return result;
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