Fixes memory leaks in linked_list and link_list_test
authorBill Blough <billblough@apache.org>
Thu, 10 May 2018 02:52:19 +0000 (02:52 +0000)
committerBill Blough <billblough@apache.org>
Thu, 10 May 2018 02:52:19 +0000 (02:52 +0000)
commit86e775942f999e3ff1c101ea01821b1a8b04ffa7
treed6edabe96431d1e3d23a955ca402d96d47286638
parente24a9a7fd6964eaeac8fbaadcb57e25e413ea26e
Fixes memory leaks in linked_list and link_list_test

In cases where an entry was removed but only the entry's data was
returned, the removed entry would be orphaned and never freed.

Also, fixes several memory leaks in the tests for linked_list.
util/src/linked_list.c
util/test/link_list/link_list_test.cc