[[ Bug 11989 ]] Prevent leaks in array load