SCP: Don't malloc ep->match_pattern twice
This commit is contained in:
parent
2c8938711c
commit
96de0748d4
1 changed files with 0 additions and 2 deletions
2
scp.c
2
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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue