Fix two leaking globals.