A British man who arrived at a Spanish airport after having too much to drink has been taken into custody — not for bad behavior but for being too generous.

Turns out the tourist had recently received an inheritance, and he had started to give away $72,285 he was carrying in cash and travelers checks.

Spain's Interior Ministry says people at Son Sant Joan Airport in Palma de Mallorca first alerted police because the disheveled man "looked like a tramp" and "had a disagreeable smell."

Police realized he was giving away thousands of euros, without realizing what he was doing.

The ministry says the man — identified as James B.N., from Manchester, England — was taken in custody Wednesday and soon persuaded to put his wallet away and fly home.