trace: fix potential use-after-free occurence
authorNick Hainke <vincent@systemli.org>
Mon, 30 Aug 2021 20:37:10 +0000 (22:37 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 30 Aug 2021 21:15:10 +0000 (22:15 +0100)
commit96d8bf2c7b6773636efb8b175993e5d17ff7d0bf
treeb2b881f0ba69a010cee89460936fafac6115cead
parente5b38fd1298cec50f68b01568fcecf5e626cd286
trace: fix potential use-after-free occurence

char* tmp is used in the fprintf function altough it is already freed.

Fixes: e5b38fd1 ("trace: free memory allocated by blobmsg_format_json_indent()")
Signed-off-by: Nick Hainke <vincent@systemli.org>
trace/trace.c