fixed memory leak
This commit is contained in:
@@ -328,7 +328,7 @@ METHOD(recommendations_t, destroy, void,
|
|||||||
{
|
{
|
||||||
recommendation_entry_t *entry;
|
recommendation_entry_t *entry;
|
||||||
|
|
||||||
while (this->recs->remove_last(this->recs, (void**)&entry))
|
while (this->recs->remove_last(this->recs, (void**)&entry) == SUCCESS)
|
||||||
{
|
{
|
||||||
free(entry->reason.ptr);
|
free(entry->reason.ptr);
|
||||||
free(entry->reason_language.ptr);
|
free(entry->reason_language.ptr);
|
||||||
|
|||||||
Reference in New Issue
Block a user