[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NULL call to _Workspace_Free() via _Objects_Extend_information at startup
- Date: Tue, 1 Mar 2011 04:15:43 -0500
- From: dufault at hda.com (Peter Dufault)
- Subject: NULL call to _Workspace_Free() via _Objects_Extend_information at startup
On Mar 1, 2011, at 3:50 , Peter Dufault wrote:
> Because of the existing design (_Heap_Block_allocate() takes a Heap_Block * not a Heap_Block **) I'm not sure the requirement that "_Heap_Free(heap, NULL)" be ignored makes much sense.
Sorry to be following up to myself. I just noticed that _Heap_Block_allocate() returns a heap block pointer, so it can work the way malloc() does. I thought it just operated on the heap pointer passed in.
Never mind. I personally (almost) never return a pointer but try to always use error returns.
HD Associates, Inc. Software and System Engineering