Ensure allocated memory is freed in error conditions
Ensure allocated memory is freed in error conditions

chef/ohai,jaymzh/ohai,shtzr840329/ohai,n-marton/ohai,davide125/ohai,criteo-forks/ohai,davide125/ohai,cmluciano/ohai,johnbellone/ohai,tas50/ohai-1,adamleff/ohai,bougyman/ohai,btm/ohai,phreakocious/ohai,jbfavre/ohai,jseely/ohai,nathwill/ohai,tas50/ohai-1,acaiafa/ohai,zshuo/ohai,http-418/ohai,numericillustration/ohai,juliandunn/ohai,juliandunn/ohai,higanworks/ohai,higanworks/ohai,jseely/ohai,acaiafa/ohai,phreakocious/ohai,adamleff/ohai,Fodoj/ohai,chef/ohai,Fodoj/ohai,numericillustration/ohai,dreamnite/ohai,Juniper/ohai,n-marton/ohai,glennmatthews/ohai,glennmatthews/ohai,sh9189/ohai,criteo-forks/ohai,btm/ohai,jaymzh/ohai,nathwill/ohai,375gnu/ohai,cmluciano/ohai,bougyman/ohai,johnbellone/ohai,http-418/ohai,shtzr840329/ohai,sh9189/ohai,mattray/ohai,jbfavre/ohai,zshuo/ohai,375gnu/ohai,mattray/ohai,dreamnite/ohai,Juniper/ohai