diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-06-15 14:29:53 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-06-15 14:29:53 +0000 |
commit | 6d902e904a290cd04dfe8dfa229914eddc0ff782 (patch) | |
tree | eadae21be44fd6fc7ae212dfe2d6bfeedb45ab7b /usr.sbin | |
parent | 887ac7affcaed2e7e8d5568178f97e5e607909a6 (diff) |
get_val() already frees the buffer passed to it so we don't need to
do it in the caller.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sensorsd/sensorsd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/sensorsd/sensorsd.c b/usr.sbin/sensorsd/sensorsd.c index e63cf9618d3..2f13e003b22 100644 --- a/usr.sbin/sensorsd/sensorsd.c +++ b/usr.sbin/sensorsd/sensorsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sensorsd.c,v 1.55 2015/06/02 23:05:05 millert Exp $ */ +/* $OpenBSD: sensorsd.c,v 1.56 2015/06/15 14:29:52 millert Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -721,11 +721,9 @@ parse_config_sdlim(struct sdlim_t *sdlim, char *cf) if (cgetstr(buf, "low", &ebuf) < 0) ebuf = NULL; p->lower = get_val(ebuf, 0, p->type); - free(ebuf); if (cgetstr(buf, "high", &ebuf) < 0) ebuf = NULL; p->upper = get_val(ebuf, 1, p->type); - free(ebuf); if (cgetstr(buf, "command", &ebuf) < 0) ebuf = NULL; if (ebuf != NULL) { |