summaryrefslogtreecommitdiffstats
path: root/sbin/sysctl
diff options
context:
space:
mode:
authorbrucec <brucec@FreeBSD.org>2010-04-20 20:24:00 +0000
committerbrucec <brucec@FreeBSD.org>2010-04-20 20:24:00 +0000
commit58afa96862636fd75072bd54d989f425df8fbd51 (patch)
tree2d4a44c2d31e5216dd6e866718bc393b12aacd14 /sbin/sysctl
parent4c4a2c02b82ce03927bd5b0e5f7f49161448d300 (diff)
downloadFreeBSD-src-58afa96862636fd75072bd54d989f425df8fbd51.zip
FreeBSD-src-58afa96862636fd75072bd54d989f425df8fbd51.tar.gz
MFC r205118:
Free the memory allocated via strdup. PR: bin/113881 Submitted by: Alexander Drozdov (dzal_mail at mtu-net.ru) Approved by: rrs (mentor)
Diffstat (limited to 'sbin/sysctl')
-rw-r--r--sbin/sysctl/sysctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index 3c1f364..f1b2473 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -379,6 +379,7 @@ S_timeval(int l2, void *p)
if (*p2 == '\n')
*p2 = '\0';
fputs(p1, stdout);
+ free(p1);
return (0);
}
OpenPOWER on IntegriCloud