fix memleak in list_delete_node
Merge pull request #17 from abellenir/memleak

closes issue #16