mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-01 22:02:36 +02:00
Do not call Free if constructor failed
git-svn-id: trunk@29298 -
This commit is contained in:
parent
9c635671ce
commit
788c6a6f83
@ -802,7 +802,6 @@ BEGIN
|
||||
ON EFOpenError DO
|
||||
BEGIN
|
||||
Writeln(stderr,'LibTar error: unable to open file "',Filename,'" for reading.');
|
||||
S.Free;
|
||||
exit;
|
||||
END;
|
||||
END;
|
||||
@ -813,7 +812,7 @@ BEGIN
|
||||
AddFile:=true;
|
||||
FINALLY
|
||||
S.Free
|
||||
END;
|
||||
END;
|
||||
END;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user