tools lib traceevent: Fix a risk for doing free on uninitialized pointer
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Tue, 24 Jun 2014 11:09:10 +0000 (13:09 +0200)
committerJiri Olsa <jolsa@kernel.org>
Fri, 27 Jun 2014 09:14:47 +0000 (11:14 +0200)
commit21da83fb6c3ff67e969b8770bbb33138c9ede88e
treed5f8c2b416aacc50ef7094a65059c56195ca8c60
parent1c92f88542faa3ae4f970c548b4fe8275a45201b
tools lib traceevent: Fix a risk for doing free on uninitialized pointer

Fix a risk of doing free on an uninitialized pointer.

This was found using a static code analysis program called cppcheck.

Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Link: http://lkml.kernel.org/r/1403608150-13037-1-git-send-email-rickard_strandqvist@spectrumdigital.se
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
tools/lib/traceevent/event-parse.c