Fix leak (and possible race condition).

Also, I meant to remove the 42 in that previous commit...
a while you're there one: { }