# HG changeset patch # User William Astle # Date 1379466707 21600 # Node ID a1a88a8ddc98fbb01f855b9106f0dcaa83640718 # Parent 210d261a614d57f0e078f8341e4e3487c6cfce90 Fix small memory leak in lw_stringlist_destroy() Make sure to free all allocated memory in lw_stringlist_destroy() instead of leaving the array of string pointers hanging about. diff -r 210d261a614d -r a1a88a8ddc98 lwlib/lw_stringlist.c --- a/lwlib/lw_stringlist.c Mon Sep 02 10:49:57 2013 -0600 +++ b/lwlib/lw_stringlist.c Tue Sep 17 19:11:47 2013 -0600 @@ -48,6 +48,7 @@ { lw_free(S -> strings[i]); } + lw_free(S -> strings); lw_free(S); } }