mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-10 07:46:08 +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
|
ON EFOpenError DO
|
||||||
BEGIN
|
BEGIN
|
||||||
Writeln(stderr,'LibTar error: unable to open file "',Filename,'" for reading.');
|
Writeln(stderr,'LibTar error: unable to open file "',Filename,'" for reading.');
|
||||||
S.Free;
|
|
||||||
exit;
|
exit;
|
||||||
END;
|
END;
|
||||||
END;
|
END;
|
||||||
@ -813,7 +812,7 @@ BEGIN
|
|||||||
AddFile:=true;
|
AddFile:=true;
|
||||||
FINALLY
|
FINALLY
|
||||||
S.Free
|
S.Free
|
||||||
END;
|
END;
|
||||||
END;
|
END;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user