changeset 284:a1a88a8ddc98

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.
author William Astle <lost@l-w.ca>
date Tue, 17 Sep 2013 19:11:47 -0600
parents 210d261a614d
children 86eb8814a05c
files lwlib/lw_stringlist.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
 	}
 }