diff options
| author | 2016-04-28 16:48:18 +0000 | |
|---|---|---|
| committer | 2016-04-28 16:48:18 +0000 | |
| commit | 42554ba76bd835781bd598f18041e930fb6cdf34 (patch) | |
| tree | 747222fa962b6660c5458d3af4a406955de4af6e /usr.sbin/installboot/i386_softraid.c | |
| parent | Comment sm_check_an_eg(). (diff) | |
| download | wireguard-openbsd-42554ba76bd835781bd598f18041e930fb6cdf34.tar.xz wireguard-openbsd-42554ba76bd835781bd598f18041e930fb6cdf34.zip | |
Plug a couple of leaks of input buffers.
Pointed out by David Carlier.
Diffstat (limited to 'usr.sbin/installboot/i386_softraid.c')
| -rw-r--r-- | usr.sbin/installboot/i386_softraid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/installboot/i386_softraid.c b/usr.sbin/installboot/i386_softraid.c index fec2740a40f..4e8bbe26e7e 100644 --- a/usr.sbin/installboot/i386_softraid.c +++ b/usr.sbin/installboot/i386_softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i386_softraid.c,v 1.9 2015/12/01 06:39:52 krw Exp $ */ +/* $OpenBSD: i386_softraid.c,v 1.10 2016/04/28 16:48:18 krw Exp $ */ /* * Copyright (c) 2012 Joel Sing <jsing@openbsd.org> * @@ -194,5 +194,6 @@ sr_install_bootldr(int devfd, char *dev) fprintf(stderr, "%s is %d blocks x %d bytes\n", stage2, nblocks, bsize); + free(p); close(fd); } |
