perf annotate: Fix memory leaks in LOCK handling
authorRabin Vincent <rabin@rab.in>
Sun, 18 Jan 2015 19:00:21 +0000 (20:00 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 21 Jan 2015 13:05:32 +0000 (10:05 -0300)
commit0fb9f2aab738eec9dd9b929ed7d37bf744d2ac77
tree04dd87c012dca644ecd7308a05b73349e3a5ec82
parentbe81908c2289f405df75d2511ccf5da785945400
perf annotate: Fix memory leaks in LOCK handling

The lock prefix handling fails to free the strdup()'d name as well as
the fields allocated by the instruction parsing.

Signed-off-by: Rabin Vincent <rabin@rab.in>
Cc: Paul Mackerras <paulus@samba.org>
Link: http://lkml.kernel.org/r/1421607621-15005-2-git-send-email-rabin@rab.in
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c