Subject: RE: calloc() and free() ps doesn't report memory being freed, why?
To: John Maier <JohnAM@datastorm.com>
From: Ron G. Minnich <rminnich@Sarnoff.COM>
List: netbsd-users
Date: 04/23/1997 21:09:28
> munmap() works, for the most part. The RSS is back to normal (544K as
> opposed to 2100K), however the VSZ part of memory is still 2200K.
whoa. You're not using munmap on data allocated with malloc, are you?
> Just out of curiosity, should I use a free() before I use munmap()?
I'm not sure you should be mixing mmap/munmap and malloc/free. are you?
ron