about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-04-05 17:40:56 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-04-05 17:40:56 +0200
commit880616397f6fb5bd571b3b8f913882f3a2156525 (patch)
tree928e01988dc8badab7964bebd491d35f07f4c252 /src
parentace8536987e905081609d1d77f044954b57208bf (diff)
downloadbox64-880616397f6fb5bd571b3b8f913882f3a2156525.tar.gz
box64-880616397f6fb5bd571b3b8f913882f3a2156525.zip
Cleanup trace_func if still present at exit
Diffstat (limited to 'src')
-rwxr-xr-xsrc/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index c843544f..04e8971b 100755
--- a/src/main.c
+++ b/src/main.c
@@ -1035,5 +1035,10 @@ int main(int argc, const char **argv, const char **env) {
     int ret = GetEAX(emu);
     printf_log(LOG_DEBUG, "Emulation finished, EAX=%d\n", ret);
 
+    if(trace_func)  {
+        free(trace_func);
+        trace_func = NULL;
+    }
+
     return ret;
 }