Skip to content

Commit

Permalink
Merge branch 'rs/plug-strbuf-leak-in-lock-ref'
Browse files Browse the repository at this point in the history
* rs/plug-strbuf-leak-in-lock-ref:
  refs: plug strbuf leak in lock_ref_sha1_basic()
  • Loading branch information
Junio C Hamano committed Jan 12, 2015
2 parents c00e1c5 + 33adc83 commit 97488ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion refs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_reset(&err);
strbuf_release(&err);
goto error_return;
}
}
Expand Down

0 comments on commit 97488ab

Please sign in to comment.