Minor fixes

A leak in execd and a warning I recently introduced in a test.