summary refs log tree commit diff stats
path: root/plugins/perl
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/perl')
-rw-r--r--plugins/perl/perl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/perl/perl.c b/plugins/perl/perl.c
index 76722f7f..7ba38968 100644
--- a/plugins/perl/perl.c
+++ b/plugins/perl/perl.c
@@ -756,6 +756,7 @@ XS (XS_HexChat_send_modes)
 		}
 		
 		if (target_count == 0) {
+			free (targets);
 			XSRETURN_EMPTY;
 		}