Skip to content

Commit f9244d6

Browse files
author
Magne Hov
committed
Make malloc_free_check installable
1 parent 617dba1 commit f9244d6

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

malloc_free_check/install.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import pathlib
2+
3+
4+
script = pathlib.Path(__file__).resolve().parent / "malloc_free_check.py"
5+
6+
print(
7+
f"""\
8+
The {script.name!r} script can be run outside of UDB:
9+
10+
$ {script} <recording-file>
11+
"""
12+
)

private/manifest.json

+7
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@
9999
],
100100
"python_package_dir": "systemc_trace_packages",
101101
"version_min": "8.2.0"
102+
},
103+
"malloc-free-check": {
104+
"description": "Tool for detecting memory leaks based on malloc and free calls.",
105+
"repo": "addons",
106+
"script": "malloc_free_check/install.py",
107+
"version_min": "8.3.0",
108+
"help": "malloc-free.py -- Check for memory leaks based on malloc and free calls."
102109
}
103110
}
104111
}

0 commit comments

Comments
 (0)