diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-11-25 15:24:53 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-25 15:24:53 -0800 |
commit | 3eebb3e044338fd989b05ab734658cf6208183b2 (patch) | |
tree | c0c5cbcc7d22e4e76368787bd29b02105e4f4193 | |
parent | Merge branch 'ma/list-object-filter-opt-msgfix' (diff) | |
parent | archive: release refname after use (diff) | |
download | tgif-3eebb3e044338fd989b05ab734658cf6208183b2.tar.xz |
Merge branch 'rs/archive-plug-leak-refname'
Memleak fix.
* rs/archive-plug-leak-refname:
archive: release refname after use
-rw-r--r-- | archive.c | 1 | ||||
-rw-r--r-- | archive.h | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -658,6 +658,7 @@ int write_archive(int argc, const char **argv, const char *prefix, rc = ar->write_archive(ar, &args); string_list_clear_func(&args.extra_files, extra_file_info_clear); + free(args.refname); return rc; } @@ -8,7 +8,7 @@ struct repository; struct archiver_args { struct repository *repo; - const char *refname; + char *refname; const char *prefix; const char *base; size_t baselen; |