Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
en:docs:fapi:dosfreeseg [2021/09/17 05:57] – prokushev | en:docs:fapi:dosfreeseg [2021/12/05 09:56] (current) – prokushev | ||
---|---|---|---|
Line 16: | Line 16: | ||
===== Return Code ===== | ===== Return Code ===== | ||
- | | + | rc ([[USHORT]]) - return |
Return code descriptions are: | Return code descriptions are: | ||
Line 26: | Line 26: | ||
- | DosFreeSeg frees selectors to segments returned by allocation calls to [[DosAllocSeg]], | + | DosFreeSeg frees selectors to segments returned by allocation calls to [[DosAllocSeg]], |
When allocated memory is shared, all selectors to the shared memory must be freed before the memory is deallocated. For example, if memory allocated by [[DosAllocSeg]] or [[DosAllocHuge]] has been given to another process with [[DosGiveSeg]], | When allocated memory is shared, all selectors to the shared memory must be freed before the memory is deallocated. For example, if memory allocated by [[DosAllocSeg]] or [[DosAllocHuge]] has been given to another process with [[DosGiveSeg]], |