summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/map_symbol.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/map_symbol.c')
-rw-r--r--tools/perf/util/map_symbol.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/perf/util/map_symbol.c b/tools/perf/util/map_symbol.c
new file mode 100644
index 0000000000..bef5079f24
--- /dev/null
+++ b/tools/perf/util/map_symbol.c
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0
+#include "map_symbol.h"
+#include "maps.h"
+#include "map.h"
+
+void map_symbol__exit(struct map_symbol *ms)
+{
+ maps__zput(ms->maps);
+ map__zput(ms->map);
+}
+
+void addr_map_symbol__exit(struct addr_map_symbol *ams)
+{
+ map_symbol__exit(&ams->ms);
+}