Farrelly's loan deal at Millmoor expired after the Millers 1-1 home draw with Leicester City on Saturday and the cash-strapped club can't afford to take the deal into a further month.
"I feel like tearing my hair out sometimes" explained Rotherham boss Ronnie Moore.
"But with the finances of the club we can't afford it, especially with us now safe."