aboutsummaryrefslogtreecommitdiffstats
path: root/userdiff.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-06-03 13:08:33 -0700
committerJunio C Hamano <gitster@pobox.com>2024-06-03 13:08:33 -0700
commit03b0e7d3a72a4a9be97b742fc3119ebb70ed9731 (patch)
tree1627f9966e3c187c3b266ece71f79944a8e0a911 /userdiff.h
parentSync with 'maint' (diff)
parentbuiltin/mv: fix leaks for submodule gitfile paths (diff)
downloadgit-03b0e7d3a72a4a9be97b742fc3119ebb70ed9731.tar.gz
git-03b0e7d3a72a4a9be97b742fc3119ebb70ed9731.zip
Merge branch 'ps/leakfixes' into ps/leakfixes-more
* ps/leakfixes: builtin/mv: fix leaks for submodule gitfile paths builtin/mv: refactor to use `struct strvec` builtin/mv duplicate string list memory builtin/mv: refactor `add_slash()` to always return allocated strings strvec: add functions to replace and remove strings submodule: fix leaking memory for submodule entries commit-reach: fix memory leak in `ahead_behind()` builtin/credential: clear credential before exit config: plug various memory leaks config: clarify memory ownership in `git_config_string()` builtin/log: stop using globals for format config builtin/log: stop using globals for log config convert: refactor code to clarify ownership of check_roundtrip_encoding diff: refactor code to clarify memory ownership of prefixes config: clarify memory ownership in `git_config_pathname()` http: refactor code to clarify memory ownership checkout: clarify memory ownership in `unique_tracking_name()` strbuf: fix leak when `appendwholeline()` fails with EOF transport-helper: fix leaking helper name
Diffstat (limited to 'userdiff.h')
-rw-r--r--userdiff.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/userdiff.h b/userdiff.h
index d726804c3e..cc8e5abfef 100644
--- a/userdiff.h
+++ b/userdiff.h
@@ -7,19 +7,19 @@ struct index_state;
struct repository;
struct userdiff_funcname {
- const char *pattern;
+ char *pattern;
int cflags;
};
struct userdiff_driver {
const char *name;
- const char *external;
- const char *algorithm;
+ char *external;
+ char *algorithm;
int binary;
struct userdiff_funcname funcname;
- const char *word_regex;
- const char *word_regex_multi_byte;
- const char *textconv;
+ char *word_regex;
+ char *word_regex_multi_byte;
+ char *textconv;
struct notes_cache *textconv_cache;
int textconv_want_cache;
};