diff place.c @ 39:337110e7240a

Pass the size to free; it makes debug checking easier.
author David A. Holland
date Sat, 30 Mar 2013 21:17:47 -0400
parents b156910b59b2
children 2e25e55dba6b
line wrap: on
line diff
--- a/place.c	Sat Mar 30 21:02:25 2013 -0400
+++ b/place.c	Sat Mar 30 21:17:47 2013 -0400
@@ -74,8 +74,8 @@
 void
 placefile_destroy(struct placefile *pf)
 {
-	dofree(pf->name);
-	dofree(pf);
+	dostrfree(pf->name);
+	dofree(pf, sizeof(*pf));
 }
 
 DESTROYALL_ARRAY(placefile, );