add malloc case for int