Explicitly set results pointer to NULL for cleanup on errors