From fe40ece9f26a3407212a9e57d9040c7f35a8c73e 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 af81d21b..646e127b 100644 --- a/scp.c +++ b/scp.c @@ -13593,8 +13593,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 */