string_free_all: Fix alloc_list_head not being reset
commit0c649c0514fd71951614666b8d7f219dd81d8425
authorIvanDSM <snesivan1@gmail.com>
Mon, 22 Jun 2020 22:10:09 +0000 (22 19:10 -0300)
committerIvanDSM <snesivan1@gmail.com>
Mon, 22 Jun 2020 22:10:09 +0000 (22 19:10 -0300)
tree9426165a288e6c217e5eea57770482e4b35ff754
parent04099c2185c46aeb9b29409d5211a8e336514caa
string_free_all: Fix alloc_list_head not being reset

alloc_list_head was not being reset to NULL after calling
string_free_all, which led to a segmentation fault when trying to create
a new string after a call to string_free_all due to an attempt to access
struct members of an invalid memory location.
src/libstring.c