Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
refs.c: ref_transaction_commit should not free the transaction
[gitweb.git]
/
builtin
/
update-ref.c
diff --git
a/builtin/update-ref.c
b/builtin/update-ref.c
index 405267f6e2776b3b2bf5c91c1102e090f5ac68f0..1fd7a8918693fca9610cb8d5de68b8607be4a30a 100644
(file)
--- 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;
}