diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-02-04 10:25:18 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-02-04 10:25:18 -0800 |
commit | d5365b43274779246665416caf1a51af5a29f776 (patch) | |
tree | 4964cb7640ffec8458d3a56815d0d4c21369f1f6 /commit.h | |
parent | 27d46a70724ef5e087863c3db35eb7ca9c084c2c (diff) | |
parent | be5c9fb9049ed470e7005f159bb923a5f4de1309 (diff) | |
download | git-d5365b43274779246665416caf1a51af5a29f776.tar.gz |
Merge branch 'jk/read-commit-buffer-data-after-free'
Clarify the ownership rule for commit->buffer field, which some
callers incorrectly accessed without making sure it is populated.
* jk/read-commit-buffer-data-after-free:
logmsg_reencode: lazily load missing commit buffers
logmsg_reencode: never return NULL
commit: drop useless xstrdup of commit message
Diffstat (limited to 'commit.h')
-rw-r--r-- | commit.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -101,6 +101,7 @@ extern int has_non_ascii(const char *text); struct rev_info; /* in revision.h, it circularly uses enum cmit_fmt */ extern char *logmsg_reencode(const struct commit *commit, const char *output_encoding); +extern void logmsg_free(char *msg, const struct commit *commit); extern void get_commit_format(const char *arg, struct rev_info *); extern const char *format_subject(struct strbuf *sb, const char *msg, const char *line_separator); |