Police were called to Richard Freeman's home on June 9 last year after receiving an allegation he was responsible for rape.
Northampton Crown Court heard the allegation was later dropped, but a search of the 24-year-old's home uncovered a large stash of crack and heroin hidden in his wardrobe.
Matthew Brookes-Baker, prosecuting, said Freeman admitted the offence, but on the basis he was warehousing the drugs for amurder suspect, who was not named.
Police who searched Freeman's home, in Holly Road, Abington, found almost £2,000 of heroin and £6,725 of crack.
Freeman, who pleaded guilty to charges of possessing class A drugs with intent to supply, was jailed for four-and-a-half years.
Judge Richard Bray said: "Nobody seems to be a drug dealer any more, they are just holding the drugs for other people – certainly those who appear in this court.
"This was a substantial amount of crack cocaine and heroin, both of high concentrations."
The court heard Freeman, formerly of Farnbrook Court, Thorplands, who has 125 previous convictions, had been using drugs since he was 13 but was now clean.
Richard Holloway, defending, said: "His part in this was his premises being used as a safe house.
"No money was found on him as he was living hand-to-mouth at the time with no lavish lifestyle."
The full article contains 259 words and appears in Northampton Chron & Echo newspaper.