Current leak detection circuit for 24 volt DC - Incoming Current equal to outgoing current
Op amp used 741


If your op-amp positive supply is 12 volts then high side current measurement is impossible when the monitored supply voltage is as high as 24 volts even if potted down 1:1 by R1 and R2: -



This is because the input voltage range of the 741 does not extend to either its positive or negative rail. You'd need a rail to rail op-amp and, to be safe, you must ensure that R2 is a little less than 1 kohm in case the 24 volts drifted upwards a tad.

Alternatively, use a high side current monitor like the INA139 from TI: -