Browse Source

fix leak if constraints are enabled in config, but disabled in the build

OPENBSD_6_2
Brent Cook 7 years ago
parent
commit
1131b6b6c7
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/constraint-disabled.c

+ 3
- 0
src/constraint-disabled.c View File

@ -16,6 +16,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <stdlib.h>
#include "ntpd.h"
u_int constraint_cnt = 0;
@ -61,6 +63,7 @@ constraint_purge(void)
void
constraint_add(struct constraint *cstr)
{
free(cstr);
}
void


Loading…
Cancel
Save