Fix memory leak issue introduced in last bug fix in pcre2grep.
This commit is contained in:
parent
3a55923da8
commit
13fe9767cf
|
@ -3051,7 +3051,8 @@ if (isdirectory(pathname))
|
|||
if (fnlength > FNBUFSIZ)
|
||||
{
|
||||
fprintf(stderr, "pcre2grep: recursive filename is too long\n");
|
||||
return 2;
|
||||
rc = 2;
|
||||
break;
|
||||
}
|
||||
sprintf(buffer, "%s%c%s", pathname, FILESEP, nextfile);
|
||||
frc = grep_or_recurse(buffer, dir_recurse, FALSE);
|
||||
|
|
Loading…
Reference in New Issue