summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorray <ray@openbsd.org>2007-02-08 03:50:49 +0000
committerray <ray@openbsd.org>2007-02-08 03:50:49 +0000
commitee53977c9746e264a94c47c22dcbff6d4a07e612 (patch)
tree533a0a3b0f20540fe96d04e2ee34e4a2552c1f88 /sys/dev/usb
parentWhen getc() returns EOF, either feof() or ferror() will return true, (diff)
downloadwireguard-openbsd-ee53977c9746e264a94c47c22dcbff6d4a07e612.tar.xz
wireguard-openbsd-ee53977c9746e264a94c47c22dcbff6d4a07e612.zip
Do all allocation and deallocation of shstr in elf_symload() to
prevent double-freeing shstr. Also don't free known NULL values (*pnames and *psnames). Initially inspired by Charles Longeau's first diff to tech@; he later sent a second diff to tech@ nearly identical to this commit. Freaky. OK mickey@.
Diffstat (limited to 'sys/dev/usb')
0 files changed, 0 insertions, 0 deletions