summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/at91dci.c
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2014-08-12 17:56:48 +0000
committerdim <dim@FreeBSD.org>2014-08-12 17:56:48 +0000
commit3cca469e525710732bb61207061a7dbf9280fd57 (patch)
tree8409f656a637d571aaf62ba35fdbb200bd73b617 /sys/dev/usb/controller/at91dci.c
parente822669a5518882bea2ec05c50ccd5ec72ae682a (diff)
downloadFreeBSD-src-3cca469e525710732bb61207061a7dbf9280fd57.zip
FreeBSD-src-3cca469e525710732bb61207061a7dbf9280fd57.tar.gz
MFC r269750:
In r268463, I misplaced a return in demangle(), causing the function to erroneously skip symbols that were not mangled at all. Fix this by moving the return into the preceding if block. While here, simplify the code by letting __cxa_demangle() allocate the needed space for the demangled symbol. This also fixes a memory leak, which would occur whenever __cxa_demangle() failed. Reported by: pgj PR: base/191981
Diffstat (limited to 'sys/dev/usb/controller/at91dci.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud