changeset 302:f29bebc279a8 ccdev

Fix memory leak in lw_stringlist_destroy() Make sure to free all allocated memory in lw_stringlist_destroy()
author William Astle <lost@l-w.ca>
date Tue, 17 Sep 2013 19:10:36 -0600
parents 6f7fe78bb868
children 659e0e4ce50c
files lwlib/lw_stringlist.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/lw_stringlist.c	Sun Sep 15 14:22:10 2013 -0600
+++ b/lwlib/lw_stringlist.c	Tue Sep 17 19:10:36 2013 -0600
@@ -48,6 +48,7 @@
 		{
 			lw_free(S -> strings[i]);
 		}
+		lw_free(S -> strings);
 		lw_free(S);
 	}
 }