diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-04-16 18:17:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-16 18:17:56 +0100 |
commit | 9c40260043e8f146642ae54fc0e6bae2a76f9f79 (patch) | |
tree | eca0bbf04af68cd1f0fceef88e616408dfebc49a | |
parent | ed959ca2f158862a59584cbfa0d39a845419f514 (diff) | |
parent | cc8a9892705f76a53cfea4e8c2f87b75480aa77a (diff) | |
download | libgit2-9c40260043e8f146642ae54fc0e6bae2a76f9f79.tar.gz |
Merge pull request #5053 from tniessen/cf-check-array-alloc-result
config_file: check result of git_array_alloc
-rw-r--r-- | src/config_file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config_file.c b/src/config_file.c index 26c9e5ed2..7f8dd650e 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -678,6 +678,7 @@ static int parse_include(git_config_parser *reader, return result; include = git_array_alloc(reader->file->includes); + GIT_ERROR_CHECK_ALLOC(include); memset(include, 0, sizeof(*include)); git_array_init(include->includes); include->path = git_buf_detach(&path); |