=================================================================== RCS file: /cvs/djgpp/djgpp/src/mwdpmi/main.c,v retrieving revision 1.1 retrieving revision 1.2 diff -p -u -r1.1 -r1.2 --- djgpp/src/mwdpmi/main.c 2001/02/07 10:18:09 1.1 +++ /cvs/djgpp/djgpp/src/mwdpmi/main.c 2001/02/07 11:04:05 1.2 @@ -29,6 +29,13 @@ unload (int code) word16 psp; char *patch; + if (special_transfer_buffer) + { + termination_regs.h.ah = DOS_DEALLOCATE_MEMORY; + termination_regs.x.es = transfer_buffer_seg; + server_int (INT_DOS, &termination_regs); + } + /* Grab the prefix seg of the current process so we can replace its command line area with a small piece of code to unload the real mode part of the server. */