was still using memdbg free function.  Had to change to libc direct function