mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-07 05:54:29 +02:00
Free memory if there is an error in the relocation table.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@695 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
2f4e2d3a69
commit
c20f68e73d
@ -693,6 +693,11 @@ COUNT DosExeLoader(BYTE FAR * namep, exec_blk * exp, COUNT mode, COUNT fd)
|
|||||||
if (DosRWSft
|
if (DosRWSft
|
||||||
(fd, sizeof(reloc), (VOID FAR *) & reloc[0], XFR_READ) != sizeof(reloc))
|
(fd, sizeof(reloc), (VOID FAR *) & reloc[0], XFR_READ) != sizeof(reloc))
|
||||||
{
|
{
|
||||||
|
if (mode != OVERLAY)
|
||||||
|
{
|
||||||
|
DosMemFree(--mem);
|
||||||
|
DosMemFree(env);
|
||||||
|
}
|
||||||
return DE_INVLDDATA;
|
return DE_INVLDDATA;
|
||||||
}
|
}
|
||||||
if (mode == OVERLAY)
|
if (mode == OVERLAY)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user