We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20e61b5 commit fe16cfcCopy full SHA for fe16cfc
shell/loadhigh.c
@@ -462,8 +462,13 @@ static int loadhigh_prepare(void)
462
/* Found a free memory block: allocate it */
463
word bl = DosAlloc(mcb->mcb_size);
464
465
- if (bl != FP_SEG(mcb) + 1) /* Did we get the block we wanted? */
+ if (bl != FP_SEG(mcb) + 1) { /* Did we get the block we wanted? */
466
+ DOSfree(bl);
467
+ for (i = 0; i < availBlocks; i++)
468
+ DOSfree(availBlock[i]);
469
+ free(availBlock);
470
return err_mcb_chain;
471
+ }
472
473
if (region->access) /* /L option allows access to this region */
474
{
0 commit comments