summaryrefslogtreecommitdiff
path: root/monkey/dispatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'monkey/dispatch.c')
-rw-r--r--monkey/dispatch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/monkey/dispatch.c b/monkey/dispatch.c
index c1b3edce4..c186a89ce 100644
--- a/monkey/dispatch.c
+++ b/monkey/dispatch.c
@@ -81,6 +81,9 @@ monkey_process_command(void)
}
} RING_ITERATE_END(handler_ring, handler);
- if (fn != NULL)
+ if (fn != NULL) {
fn(argc, argv);
+ }
+
+ free(argv);
}