diff lwlib/lw_stringlist.c @ 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 2c24602be78f
children
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);
 	}
 }