Fixed memory leak

Fixed memory leak in test_head_list
This commit is contained in:
Michael Tryby
2019-04-10 10:44:34 -04:00
parent 39038bc17e
commit ea02e1736e
3 changed files with 80 additions and 59 deletions

View File

@@ -76,12 +76,12 @@ void for_each_list(list_t *list, listIterator iterator);
/**
@brief Returns the head of the list (optionally removing it at the same time).
*/
void head_list(list_t *list, void **element, bool removeFromList);
void *head_list(list_t *list, bool removeFromList);
/**
@brief Returns the tail of the list.
*/
void tail_list(list_t *list, void *element);
void *tail_list(list_t *list);
#if defined(__cplusplus)