Jason Lowe scored late on to help Oldham draw with Walsall, who are one point above the relegation zone.
The Latics had an early Warren Feeney goal ruled out for offside, after his initial header had hit the bar.
Tom Williams put the Saddlers ahead when his free-kick from the right wing evaded everyone and went straight in.
Filipe Morais was shown a straight red card for a challenge on Walsall's Jordan Cook, but Lowe fired into the top corner late on to snatch a point.
Oldham Athletic defender Reuben Hazell told BBC Radio Manchester:
"The gaffer's had to patch it up today and to be honest, after going down to ten, I think the lads did well to battle back.
"I think we were safe before this, but obviously mathematically now we are secure and can start planning for next season.
"There are still games to play and people looking for places to be here next season."