summaryrefslogtreecommitdiff
path: root/builtin/update-ref.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@google.com>2014-06-20 14:42:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-07-14 18:54:40 (GMT)
commit33f9fc593247322ddea5515f548a06cf34d12c2f (patch)
tree78af5fff143a5c987539b4733ab05a2422fd0f74 /builtin/update-ref.c
parent026bd1d3e27a9e9b8f6b0098644c5753a2a1e355 (diff)
downloadgit-33f9fc593247322ddea5515f548a06cf34d12c2f.zip
git-33f9fc593247322ddea5515f548a06cf34d12c2f.tar.gz
git-33f9fc593247322ddea5515f548a06cf34d12c2f.tar.bz2
refs.c: ref_transaction_commit should not free the transaction
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Ronnie Sahlberg <sahlberg@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> Acked-by: Michael Haggerty <mhagger@alum.mit.edu>
Diffstat (limited to 'builtin/update-ref.c')
-rw-r--r--builtin/update-ref.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/update-ref.c b/builtin/update-ref.c
index 405267f..1fd7a89 100644
--- a/builtin/update-ref.c
+++ b/builtin/update-ref.c
@@ -369,6 +369,7 @@ int cmd_update_ref(int argc, const char **argv, const char *prefix)
update_refs_stdin();
ret = ref_transaction_commit(transaction, msg,
UPDATE_REFS_DIE_ON_ERR);
+ ref_transaction_free(transaction);
return ret;
}