diff options
| author | 2010-01-01 01:47:41 +0000 | |
|---|---|---|
| committer | 2010-01-01 01:47:41 +0000 | |
| commit | 23d0ad6344e80d474d0864828261303d882eeaa3 (patch) | |
| tree | fe15d72335d874632451dda62a91fe8a3fb5ae15 /usr.sbin/dhcpd/alloc.c | |
| parent | keep and eye on and back up /etc/ssl/cert.pem (diff) | |
| download | wireguard-openbsd-23d0ad6344e80d474d0864828261303d882eeaa3.tar.xz wireguard-openbsd-23d0ad6344e80d474d0864828261303d882eeaa3.zip | |
Plug a potential leak similar to the one parfait spotted and Theo
fixed.
Eliminate the function new_class() by expanding the only use
Use strdup() and calloc() rather than manually simulating them.
No functional change.
Diffstat (limited to 'usr.sbin/dhcpd/alloc.c')
| -rw-r--r-- | usr.sbin/dhcpd/alloc.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/usr.sbin/dhcpd/alloc.c b/usr.sbin/dhcpd/alloc.c index 19ffe2db116..69309c0deec 100644 --- a/usr.sbin/dhcpd/alloc.c +++ b/usr.sbin/dhcpd/alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: alloc.c,v 1.4 2004/09/16 18:35:42 deraadt Exp $ */ +/* $OpenBSD: alloc.c,v 1.5 2010/01/01 01:47:41 krw Exp $ */ /* Memory allocation... */ @@ -146,13 +146,6 @@ new_subnet(char *name) return (rval); } -struct class * -new_class(char *name) -{ - struct class *rval = dmalloc(sizeof(struct class), name); - return (rval); -} - struct lease_state * new_lease_state(char *name) { |
