Fix leak (bug #3148, thanks for the heads up!)