trace: Fix memory use on no-function name path
authorJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 11:57:11 +0000 (13:57 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 15:15:12 +0000 (17:15 +0200)
commitfa0a9f536cad17763665239e43321d649c5c0bed
tree0c415d478f175c84c9571d0e1698cb60866f6dd2
parentd12eb581f9a9fcf6c8832c01e78749e5240b4691
trace: Fix memory use on no-function name path

bfd_demangle() call could be skipped if data.function == NULL. Make sure
the already freed aname pointer cannot be used again in such a case.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/utils/trace.c