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

This commit is contained in:
Ronan Abhamon 2018-03-06 15:39:13 +01:00
parent d8e81d63c8
commit 2f1be97c10

View file

@ -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;
}