summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>1998-11-24 01:59:41 +0000
committerwtc%netscape.com <devnull@localhost>1998-11-24 01:59:41 +0000
commit0944a86e579f50ded2d299b7c4f1ee36f685e17a (patch)
tree852cacb0fb74e258898c6a521dee4cf4fa897b11
parent84f47fadd0ab8fda65220e2e40b512557dc198f3 (diff)
downloadnspr-hg-0944a86e579f50ded2d299b7c4f1ee36f685e17a.tar.gz
_MD_FreeSegment should call free (instead of DisposePtr) to deallocate
the memory allocated by _MD_AllocSegment using malloc. Thanks to Simon Fraser <sfraser@netscape.com> for the bug report and fix.
-rw-r--r--pr/src/md/mac/macthr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pr/src/md/mac/macthr.c b/pr/src/md/mac/macthr.c
index 26008768..6dbafca0 100644
--- a/pr/src/md/mac/macthr.c
+++ b/pr/src/md/mac/macthr.c
@@ -85,7 +85,7 @@ void _MD_FreeSegment(PRSegment *seg)
PR_ASSERT((seg->flags & _PR_SEG_VM) == 0);
if (seg->vaddr != NULL)
- DisposePtr((Ptr)(seg->vaddr));
+ free(seg->vaddr);
}