Mercurial > ~dholland > hg > tradcpp > index.cgi
comparison 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 |
comparison
equal
deleted
inserted
replaced
38:b156910b59b2 | 39:337110e7240a |
---|---|
72 | 72 |
73 static | 73 static |
74 void | 74 void |
75 placefile_destroy(struct placefile *pf) | 75 placefile_destroy(struct placefile *pf) |
76 { | 76 { |
77 dofree(pf->name); | 77 dostrfree(pf->name); |
78 dofree(pf); | 78 dofree(pf, sizeof(*pf)); |
79 } | 79 } |
80 | 80 |
81 DESTROYALL_ARRAY(placefile, ); | 81 DESTROYALL_ARRAY(placefile, ); |
82 | 82 |
83 const struct placefile * | 83 const struct placefile * |