fdtgrep: Separate out checking of two allocations