Skip to content

Commit d9d5b53

Browse files
authored
Always initialize redirect_str to prevent memory leak (#1029)
2 parents 57dc7d0 + a0a2ad1 commit d9d5b53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/fpm_filesystem.F90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,8 @@ subroutine run(cmd,echo,exitstat,verbose,redirect)
10111011
if (present(redirect)) then
10121012
if(redirect /= '')then
10131013
redirect_str = ">"//redirect//" 2>&1"
1014+
else
1015+
redirect_str = ""
10141016
endif
10151017
else
10161018
if(verbose_local)then

0 commit comments

Comments
 (0)