aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorokan2014-04-21 12:52:14 +0000
committerokan2014-04-21 12:52:14 +0000
commit8fcbf7b8c5ca91ed2e01de4f3bc0b73dedb8d209 (patch)
tree1091c6a5cd65891029bcb43d766c48b96378008c /conf.c
parentff9c3bdb5409a7e35bb6b17d9786ef5aa3b0ae1a (diff)
downloadcwm-8fcbf7b8c5ca91ed2e01de4f3bc0b73dedb8d209.tar.gz
plug memleak (currently unused func); from Tiago Cunha
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index c974f97..e21a47e 100644
--- a/conf.c
+++ b/conf.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: conf.c,v 1.172 2014/02/02 16:29:04 okan Exp $
+ * $OpenBSD: conf.c,v 1.173 2014/04/21 12:52:14 okan Exp $
*/
#include <sys/param.h>
@@ -309,6 +309,7 @@ conf_clear(struct conf *c)
while ((wn = TAILQ_FIRST(&c->ignoreq)) != NULL) {
TAILQ_REMOVE(&c->ignoreq, wn, entry);
+ free(wn->name);
free(wn);
}