A primary aliphatic amine on reaction with nitrous acid in cold gives a diazonium salt, but diazonium salt of aliphatic amines are not much stable, so, they dissociate on increasing temperature slightly and gives alcohol with water.
R−NH2→273∘CHNO2(aq)RN2+→H2O283∘CR−OH+N2