Senegal and South Africa bowed out of the Africa Cup of Nations after playing out a competitive draw in Kumasi.
Papa Bouba Diop (left) shoots for Senegal
The result meant neither team put any pressure on Angola and Tunisia whose goalless draw allowed them to progress.
South Africa's Elrio van Heerden scored his second goal of the tournament on 14 minutes when he volleyed home a Teko Modise cross.
Henri Camara equalised for Senegal after 37 minutes taking advantage of a defensive mistake to slot home.
Despite the game opening up in the second half, neither team could prise an opening though South Africa had several good shooting opportunities and hit the post in injury time from a floated cross.
It was the first match in charge for Senegal coach Lamine Ndiaye who replaced Henri Kasperczak following the 3-1 defeat to Angola on Sunday.
But if the players were hoping for a easy ride from the acting boss they were mistaken as Ndiaye dropped El-Hadji Diouf, goalkeeper Tony Sylva and Ousmane Ndoye for being caught in a Kumasi nightclub on Wednesday night.
West Ham's Henri Camara was handed his first start of the tournament and had the first chance of the game with a turn and shot but it was straight at the South Africa keeper Moeneeb Josephs.
At the other end Nasief Morris put a good free-kick opportunity way over the bar before South Africa had a very good penalty claim waved away.
Van Heerden, who was handed a start on the right flank, burst to the byeline and was brought down by Souleymane Diawara but the winger recovered to make a more telling contribution a minute later.
Tsepo Masilela fed Teko Modise down the left and the midfielder's deep cross was met by Van Heerden at the back post as he volleyed cooly into the net.
It was the second strike of the tournament for the Club Bruge winger who also scored a superb goal in South Africa's opener against Angola.
On the opposite flank South Africa's Sibusiso Zuma was also a threat and he went close to extending the lead when his near-post shot was well saved after a run from the halfway line.
With half-time approaching Bafana Bafana looked comfortable, happy to yield possession while hitting the Senegalese on the break.
But they were undone on 37 minutes when Aaron Mokoena misjudged a flighted through ball by attempting to hack it clear. He merely sliced his clearance into Camara who took two touches before slotting the ball in with his right foot.
The goal breathed confidence into Senegal and Mamadou Niang created a wonderful opening after a tricky run only to shoot straight at Josephs.
The Teranga Lions began the second period with an equal purpose but Zuma still looked dangerous when a run into a congested penalty area led to Siphiwe Tshabalala shooting over.
And the same combination came even closer after 56 minutes when Tshabalala fired wide after orchestrating the beginning of the move with a lovely drag back.
South Africa were gaining momentum and they should have taken the lead for the second time in the game when a mis-kick by Diawara gave Zuma a clear shooting opportunity but Senegal's Bouna Coundoul pulled off a remarkable save.
In the other goal, Josephs was struggling with a cut on his knee which he sustained early in the second half. Indeed the second-choice keeper was asking his defenders to take goal-kicks and it was as well the South African back four were keeping Senegal's strikers quiet.
The game needed someone to take a stranglehold but neither team looked overly inspired to take a risk.
Bafana Bafana did look more likely to score, though, when the introduction of Lerato Chabangu led to the South African substitute shooting from 25 yards and Kagisho Dikgacoi went even closer drawing another good save from Coundoul.
With three forwards on the pitch, Senegal prised a late opening when Papa Waigo flashed a diving header wide with ten minutes left.
Tshabalala also went close in injury time when his lofted cross bounced off the upright.
Senegal: Coundoul, Diatta, Diawara, Ibrahima Faye, Abdoulaye Faye, Sall, Diop (Gueye 52), Ba, Kamara (Sougou 82), Niang (Papa Waigo 59), Camara.
Subs Not Used: Guirane, N'Doye, Beye, Diouf, Mendy, Ndiaye, Sarr, Sonko, Sylva.
Booked: Sall, Ba, Gueye.
Goals: Camara 37.
South Africa: Josephs, Masilela, Mokoena, Morris, Moon (Davids 80), Modise, Tshabalala, Moriri (Chabangu 71),Van Heerden, Dikgacoi, Zuma (Fanteni 90).
Subs Not Used: Evans, Fernandez, Fransman, Khune, Mhlongo, Mphela, Nhlapo, Pienaar, Walaza.
Goals: Van Heerden 14.
Ref: Alex Kotey (Ghana).