summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-04-12 20:52:26 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-04-12 20:54:55 +0200
commita15156930bbfacfaad6e4f036d3fe89a12170406 (patch)
treef3ab630a7ea7325447b7471e42a1b6a4f1049e8d
parent6a8bcfa48e7c4b2c5cbcf07e262d372a35bba7f8 (diff)
downloadlibgit2-a15156930bbfacfaad6e4f036d3fe89a12170406.tar.gz
local transport: plug leak
-rw-r--r--src/transports/local.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/transports/local.c b/src/transports/local.c
index fca8e64ee..01c72cb41 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: