diff options
author | 2007-02-08 03:50:49 +0000 | |
---|---|---|
committer | 2007-02-08 03:50:49 +0000 | |
commit | ee53977c9746e264a94c47c22dcbff6d4a07e612 (patch) | |
tree | 533a0a3b0f20540fe96d04e2ee34e4a2552c1f88 /sys/dev/usb | |
parent | When getc() returns EOF, either feof() or ferror() will return true, (diff) | |
download | wireguard-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