diff options
Diffstat (limited to 'chattyparser.py')
| -rwxr-xr-x | chattyparser.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chattyparser.py b/chattyparser.py index 50cbcd2..6cc13a0 100755 --- a/chattyparser.py +++ b/chattyparser.py @@ -161,6 +161,8 @@ def record_allocation(trace, context): msg = f"WARNING: free of invalid pointer {freed_ptr:x}\n" else: size = allocations.pop(freed_ptr) * -1 + if trace.func == Function.free: + trace.var_arg = -1 * size msg = update_cache_lines(cache_lines, trace, size) # allocations |
