diff options
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/symbol.c | 2 | ||||
-rw-r--r-- | tools/perf/util/symbol.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index 7aab4e5f3669..323c0aea0a91 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c | |||
@@ -144,7 +144,7 @@ static struct symbol *symbol__new(u64 start, u64 len, const char *name) | |||
144 | return self; | 144 | return self; |
145 | } | 145 | } |
146 | 146 | ||
147 | static void symbol__delete(struct symbol *self) | 147 | void symbol__delete(struct symbol *self) |
148 | { | 148 | { |
149 | free(((void *)self) - symbol_conf.priv_size); | 149 | free(((void *)self) - symbol_conf.priv_size); |
150 | } | 150 | } |
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index 1b4192ee5300..280dadd32a08 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h | |||
@@ -51,6 +51,8 @@ struct symbol { | |||
51 | char name[0]; | 51 | char name[0]; |
52 | }; | 52 | }; |
53 | 53 | ||
54 | void symbol__delete(struct symbol *self); | ||
55 | |||
54 | struct strlist; | 56 | struct strlist; |
55 | 57 | ||
56 | struct symbol_conf { | 58 | struct symbol_conf { |