Browse Source

fix memory leak; from David CARLIER

OPENBSD_5_9
deraadt 9 years ago
parent
commit
adcf1148c1
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/usr.sbin/ntpd/constraint.c

+ 2
- 1
src/usr.sbin/ntpd/constraint.c View File

@ -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 <reyk@openbsd.org> * Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@ -502,6 +502,7 @@ constraint_remove(struct constraint *cstr)
close(cstr->fd); close(cstr->fd);
free(cstr->addr_head.name); free(cstr->addr_head.name);
free(cstr->addr_head.path); free(cstr->addr_head.path);
free(cstr->addr);
free(cstr); free(cstr);
} }


Loading…
Cancel
Save