summaryrefslogtreecommitdiff
path: root/app/cwm/conf.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2014-04-21 12:52:15 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2014-04-21 12:52:15 +0000
commit714c5fc4a322221b5ea7763ee7aa097193f41254 (patch)
tree6aea5a4e75ab338c32768797bd7615a7f81a95af /app/cwm/conf.c
parent1bd87137b6d77173b4f766cd6148aa94b2a4fc35 (diff)
plug memleak (currently unused func); from Tiago Cunha
Diffstat (limited to 'app/cwm/conf.c')
-rw-r--r--app/cwm/conf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/cwm/conf.c b/app/cwm/conf.c
index c974f9738..e21a47e22 100644
--- a/app/cwm/conf.c
+++ b/app/cwm/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);
}