Async-exception safety, and avoid space leaks Patch submitted by: Bas van Dijk <v.dijk.bas@gmail.com> Modified slightly by me to remove non-functional changes.
Async-exception safety, and avoid space leaks
Patch submitted by: Bas van Dijk <v.dijk.bas@gmail.com>
Modified slightly by me to remove non-functional changes.

acowley/ghc,forked-upstream-packages-for-ghcjs/ghc,anton-dessiatov/ghc,ml9951/ghc,sgillespie/ghc,urbanslug/ghc,snoyberg/ghc,olsner/ghc,da-x/ghc,vikraman/ghc,ezyang/ghc,siddhanathan/ghc,lukexi/ghc,shlevy/ghc,ml9951/ghc,elieux/ghc,vikraman/ghc,snoyberg/ghc,tjakway/ghcjvm,ml9951/ghc,jstolarek/ghc,nkaretnikov/ghc,urbanslug/ghc,AlexanderPankiv/ghc,elieux/ghc,TomMD/ghc,fmthoma/ghc,ezyang/ghc,green-haskell/ghc,nkaretnikov/ghc,nathyong/microghc-ghc,sdiehl/ghc,tjakway/ghcjvm,GaloisInc/halvm-ghc,sdiehl/ghc,vikraman/ghc,mettekou/ghc,wxwxwwxxx/ghc,holzensp/ghc,AlexanderPankiv/ghc,olsner/ghc,holzensp/ghc,GaloisInc/halvm-ghc,GaloisInc/halvm-ghc,da-x/ghc,lukexi/ghc,mcschroeder/ghc,mfine/ghc,tibbe/ghc,urbanslug/ghc,wxwxwwxxx/ghc,wxwxwwxxx/ghc,ghc-android/ghc,gcampax/ghc,ml9951/ghc,green-haskell/ghc,sdiehl/ghc,christiaanb/ghc,elieux/ghc,GaloisInc/halvm-ghc,bitemyapp/ghc,vikraman/ghc,fmthoma/ghc,nushio3/ghc,acowley/ghc,snoyberg/ghc,anton-dessiatov/ghc,nushio3/ghc,ezyang/ghc,sgillespie/ghc,nathyong/microghc-ghc,christiaanb/ghc,vTurbine/ghc,anton-dessiatov/ghc,ghc-android/ghc,bitemyapp/ghc,nathyong/microghc-ghc,tibbe/ghc,gridaphobe/ghc,spacekitteh/smcghc,gcampax/ghc,vTurbine/ghc,gcampax/ghc,snoyberg/ghc,GaloisInc/halvm-ghc,ghc-android/ghc,nkaretnikov/ghc,oldmanmike/ghc,ml9951/ghc,sgillespie/ghc,christiaanb/ghc,oldmanmike/ghc,frantisekfarka/ghc-dsi,holzensp/ghc,olsner/ghc,mcschroeder/ghc,ml9951/ghc,nathyong/microghc-ghc,gridaphobe/ghc,nushio3/ghc,mettekou/ghc,snoyberg/ghc,nushio3/ghc,fmthoma/ghc,forked-upstream-packages-for-ghcjs/ghc,christiaanb/ghc,jstolarek/ghc,mettekou/ghc,mfine/ghc,jstolarek/ghc,urbanslug/ghc,holzensp/ghc,gridaphobe/ghc,da-x/ghc,forked-upstream-packages-for-ghcjs/ghc,oldmanmike/ghc,vTurbine/ghc,siddhanathan/ghc,ghc-android/ghc,olsner/ghc,da-x/ghc,elieux/ghc,acowley/ghc,anton-dessiatov/ghc,spacekitteh/smcghc,forked-upstream-packages-for-ghcjs/ghc,mettekou/ghc,TomMD/ghc,gridaphobe/ghc,gcampax/ghc,acowley/ghc,ezyang/ghc,ghc-android/ghc,spacekitteh/smcghc,mcschroeder/ghc,mcschroeder/ghc,green-haskell/ghc,urbanslug/ghc,oldmanmike/ghc,gcampax/ghc,tjakway/ghcjvm,vTurbine/ghc,ryantm/ghc,fmthoma/ghc,tibbe/ghc,bitemyapp/ghc,TomMD/ghc,frantisekfarka/ghc-dsi,ryantm/ghc,vTurbine/ghc,tibbe/ghc,siddhanathan/ghc,elieux/ghc,AlexanderPankiv/ghc,olsner/ghc,spacekitteh/smcghc,urbanslug/ghc,forked-upstream-packages-for-ghcjs/ghc,nkaretnikov/ghc,wxwxwwxxx/ghc,nkaretnikov/ghc,wxwxwwxxx/ghc,mettekou/ghc,tjakway/ghcjvm,TomMD/ghc,olsner/ghc,TomMD/ghc,siddhanathan/ghc,forked-upstream-packages-for-ghcjs/ghc,mfine/ghc,frantisekfarka/ghc-dsi,nkaretnikov/ghc,nathyong/microghc-ghc,mfine/ghc,oldmanmike/ghc,wxwxwwxxx/ghc,oldmanmike/ghc,tjakway/ghcjvm,christiaanb/ghc,anton-dessiatov/ghc,nathyong/microghc-ghc,sgillespie/ghc,ghc-android/ghc,mcschroeder/ghc,jstolarek/ghc,vikraman/ghc,bitemyapp/ghc,gridaphobe/ghc,AlexanderPankiv/ghc,sgillespie/ghc,tjakway/ghcjvm,acowley/ghc,fmthoma/ghc,siddhanathan/ghc,shlevy/ghc,da-x/ghc,lukexi/ghc,GaloisInc/halvm-ghc,GaloisInc/halvm-ghc,snoyberg/ghc,green-haskell/ghc,mettekou/ghc,mfine/ghc,elieux/ghc,ml9951/ghc,tjakway/ghcjvm,sgillespie/ghc,gridaphobe/ghc,gcampax/ghc,vikraman/ghc,siddhanathan/ghc,gridaphobe/ghc,nushio3/ghc,tibbe/ghc,TomMD/ghc,sdiehl/ghc,da-x/ghc,AlexanderPankiv/ghc,vikraman/ghc,mcschroeder/ghc,sgillespie/ghc,mettekou/ghc,spacekitteh/smcghc,acowley/ghc,bitemyapp/ghc,nushio3/ghc,fmthoma/ghc,shlevy/ghc,shlevy/ghc,christiaanb/ghc,ryantm/ghc,da-x/ghc,snoyberg/ghc,anton-dessiatov/ghc,gcampax/ghc,forked-upstream-packages-for-ghcjs/ghc,urbanslug/ghc,acowley/ghc,sdiehl/ghc,nushio3/ghc,vTurbine/ghc,shlevy/ghc,olsner/ghc,shlevy/ghc,frantisekfarka/ghc-dsi,ezyang/ghc,sdiehl/ghc,frantisekfarka/ghc-dsi,fmthoma/ghc,anton-dessiatov/ghc,green-haskell/ghc,ryantm/ghc,lukexi/ghc,sdiehl/ghc,ghc-android/ghc,oldmanmike/ghc,mfine/ghc,siddhanathan/ghc,mcschroeder/ghc,ryantm/ghc,ezyang/ghc,vTurbine/ghc,wxwxwwxxx/ghc,mfine/ghc,christiaanb/ghc,ezyang/ghc,AlexanderPankiv/ghc,holzensp/ghc,elieux/ghc,AlexanderPankiv/ghc,nkaretnikov/ghc,jstolarek/ghc,shlevy/ghc,ml9951/ghc,lukexi/ghc,nathyong/microghc-ghc,TomMD/ghc