local transport: plug leak
diff --git a/src/transports/local.c b/src/transports/local.c
index fca8e64..01c72cb 100644
--- a/src/transports/local.c
+++ b/src/transports/local.c
@@ -118,6 +118,7 @@ static int store_refs(transport_local *t)
goto on_error;
}
+ git_strarray_free(&ref_names);
return 0;
on_error: