From 96de0748d421043d5835ef56a8184f29f5b67d3f Mon Sep 17 00:00:00 2001 From: Seth Morabito Date: Wed, 7 Jun 2023 17:21:43 -0700 Subject: [PATCH] SCP: Don't malloc ep->match_pattern twice --- scp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/scp.c b/scp.c index 4a2d8473..7c735806 100644 --- a/scp.c +++ b/scp.c @@ -13119,8 +13119,6 @@ else { ep->match = match_buf; ep->size = match_size; } -ep->match_pattern = (char *)malloc (strlen (match) + 1); -strcpy (ep->match_pattern, match); if (ep->act) { /* replace old action? */ free (ep->act); /* deallocate */ ep->act = NULL; /* now no action */