record_conv: fix leaks (when configure fails)