diff options
author | Boris Egorov <egorov@linux.com> | 2015-01-25 22:34:46 +0600 |
---|---|---|
committer | Boris Egorov <egorov@linux.com> | 2015-01-25 22:34:46 +0600 |
commit | 36e13399c030227d19523d19e3b75073a72cadb3 (patch) | |
tree | b67874a1be275a3a805af155f0483df1fbeee6b1 /tests/diff/binary.c | |
parent | 73c5db7663b16f8aee2176ae8a5a4ed5127d5c35 (diff) | |
download | libgit2-36e13399c030227d19523d19e3b75073a72cadb3.tar.gz |
describe example: fix memory allocation size
We need to allocate memory for sizeof(char *) * ncommits, not just for
ncommits.
Issue detected by GCC's AddressSanitizer.
Diffstat (limited to 'tests/diff/binary.c')
0 files changed, 0 insertions, 0 deletions