summaryrefslogtreecommitdiff
path: root/archive.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-11-25 15:24:53 -0800
committerJunio C Hamano <gitster@pobox.com>2020-11-25 15:24:53 -0800
commit3eebb3e044338fd989b05ab734658cf6208183b2 (patch)
treec0c5cbcc7d22e4e76368787bd29b02105e4f4193 /archive.h
parentb5b71cbd5dd2a811bd2ddd0b88da1c337c02bb3c (diff)
parent1c3e412916df1193b270a6947782f96524e5fa45 (diff)
downloadgit-3eebb3e044338fd989b05ab734658cf6208183b2.tar.gz
Merge branch 'rs/archive-plug-leak-refname'
Memleak fix. * rs/archive-plug-leak-refname: archive: release refname after use
Diffstat (limited to 'archive.h')
-rw-r--r--archive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/archive.h b/archive.h
index e3d04e8ab3..33551b7ee1 100644
--- a/archive.h
+++ b/archive.h
@@ -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;