Add missing error code when alloc-return-null