getpwuid memory leak?!?
getpwuid memory leak?!?
- Subject: getpwuid memory leak?!?
- From: Martin Bestmann <email@hidden>
- Date: Wed, 3 Aug 2005 19:16:13 +0200
Hi,
while running my App using "ObjectAlloc" I get memory allocation that
are not deallocated / static allocated when calling
getpwuid
Looking at the man pages I can not find any reference to the fact
that I'm responsible for releasing the memory allocated in getpwuid.
Is this a bug in the documentation or is this a bug in the OS that
with each call to getpwuid memory gets allocated.
Here is a stack crawl returned by "ObjectAlloc"
getpwuid
getpw
getpw_internal
copy_user
strdup
malloc
malloc_zone_malloc
getpwuid
getpw
getpw_internal
copy_user
calloc
I'm running on Mac OS X 10.4.2
Thanks,
Martin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden