Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rs/plug-strbuf-leak-in-lock-ref'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 12 Jan 2015 19:38:30 +0000
(11:38 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 12 Jan 2015 19:38:31 +0000
(11:38 -0800)
* rs/plug-strbuf-leak-in-lock-ref:
refs: plug strbuf leak in lock_ref_sha1_basic()
refs.c
patch
|
blob
|
history
raw
(from parent 1:
c00e1c5
)
diff --git
a/refs.c
b/refs.c
index 5fcacc6c41e6c7033367cc9c4cf7c18b33eea286..ed3b2cb405cc576f16e5b94d83683953b94e1e89 100644
(file)
--- a/
refs.c
+++ b/
refs.c
@@
-2334,7
+2334,7
@@
static struct ref_lock *lock_ref_sha1_basic(const char *refname,
struct strbuf err = STRBUF_INIT;
unable_to_lock_message(ref_file, errno, &err);
error("%s", err.buf);
- strbuf_re
set
(&err);
+ strbuf_re
lease
(&err);
goto error_return;
}
}