better free for externalptr ng