summaryrefslogtreecommitdiff
path: root/include/git2/commit.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2016-02-10 10:59:14 +0100
committerPatrick Steinhardt <ps@pks.im>2016-02-10 10:59:14 +0100
commit8dddea42aaf876663fc3cc1afa31f2165cb9f993 (patch)
tree44c264cd214458cf8af55feb004b0827c4d96e6e /include/git2/commit.h
parent488e2b85053a45dd2ce6a37b7d5cf70870be5ed8 (diff)
downloadlibgit2-8dddea42aaf876663fc3cc1afa31f2165cb9f993.tar.gz
coverity: provide nodef for GITERR_CHECK_ALLOC
Coverity currently lists a lot of errors with regard to GITERR_CHECK_ALLOC causing resource leaks. We know this macro is only invoked when we want to abort because we are out of memory. Coverity allows for overriding the default model where we know that certain functions guarantee a desired behavior. The user_nodefs.h is used to override the behavior of macros. Re-define GITERR_CHECK_ALLOC inside of it to specify its abort nature.
Diffstat (limited to 'include/git2/commit.h')
0 files changed, 0 insertions, 0 deletions