From adcf1148c16eb5a7d061cf029e2734bfe0fd4ca1 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Tue, 17 Nov 2015 15:34:36 +0000 Subject: [PATCH] fix memory leak; from David CARLIER --- src/usr.sbin/ntpd/constraint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/usr.sbin/ntpd/constraint.c b/src/usr.sbin/ntpd/constraint.c index 5b8cc21a..30bdda0f 100644 --- a/src/usr.sbin/ntpd/constraint.c +++ b/src/usr.sbin/ntpd/constraint.c @@ -1,4 +1,4 @@ -/* $OpenBSD: constraint.c,v 1.19 2015/10/12 06:50:08 reyk Exp $ */ +/* $OpenBSD: constraint.c,v 1.20 2015/11/17 15:34:36 deraadt Exp $ */ /* * Copyright (c) 2015 Reyk Floeter @@ -502,6 +502,7 @@ constraint_remove(struct constraint *cstr) close(cstr->fd); free(cstr->addr_head.name); free(cstr->addr_head.path); + free(cstr->addr); free(cstr); }