about summary refs log tree commit diff
path: root/cache.c
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2013-03-04 13:25:36 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2013-03-04 20:47:53 -0500
commit985d6ca7e70ca4774b81106e9eeecd619e5b3930 (patch)
tree2ef4b0d2c4be846266619ba70ae6267d26c94726 /cache.c
parentfind_default_branch(): Free refmatch after usage (diff)
downloadcgit-pink-985d6ca7e70ca4774b81106e9eeecd619e5b3930.tar.gz
cgit-pink-985d6ca7e70ca4774b81106e9eeecd619e5b3930.zip
cgit_print_tree(): Free curr_rev after usage
Fixes following memory leak seen with "PATH_INFO=/cgit/tree/":

    ==15715== 7 bytes in 1 blocks are definitely lost in loss record 4 of 51
    ==15715==    at 0x4C2C04B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
    ==15715==    by 0x56F2DF1: strdup (in /usr/lib/libc-2.17.so)
    ==15715==    by 0x46CAA8: xstrdup (wrapper.c:35)
    ==15715==    by 0x418A4C: cgit_print_tree (ui-tree.c:274)
    ==15715==    by 0x407D91: tree_fn (cmd.c:131)
    ==15715==    by 0x405E16: process_request (cgit.c:574)
    ==15715==    by 0x4074C8: cache_process (cache.c:322)
    ==15715==    by 0x406C4F: main (cgit.c:872)

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'cache.c')
0 files changed, 0 insertions, 0 deletions
w error if disconnected unintentionallyJune McEnroe 2018-12-04Send only SIGHUP in sandmanJune McEnroe 2018-12-04Revert half-working reconnecting stuffJune McEnroe 2018-12-04Add -a auth option for unimplemented SASLJune McEnroe 2018-12-03Implement base64 encodingJune McEnroe 2018-12-03Call uiShow at init so that TermFocus gets setJune McEnroe 2018-12-03Check nick to determine if is selfJune McEnroe 2018-12-03Ignore ~ username prefixesJune McEnroe 2018-12-02Move host, port, pass, webp to selfJune McEnroe 2018-12-02Add -r option for realnameJune McEnroe 2018-12-02Send automated messages to TagStatus with UIColdJune McEnroe 2018-12-02Various man page tweaks and editsJune McEnroe 2018-12-02Fix UI resume on /urlJune McEnroe 2018-12-02Add sandman.m to READMEJune McEnroe 2018-12-01Crudely handle reconnecting after suspendJune McEnroe 2018-12-01Fix sandman hangJune McEnroe 2018-12-01Use sigaction in sandmanJune McEnroe 2018-11-30Handle signals consistently in the event loopJune McEnroe 2018-11-30Separate ircConnect and ircDisconnectJune McEnroe 2018-11-30Measure length of log timestamp more consistentlyJune McEnroe 2018-11-30Reformat sandman Objective-C codeJune McEnroe 2018-11-30Ignore sandmanJune McEnroe 2018-11-30Add sandmanJune McEnroe 2018-11-29Strip timestamps from log replayJune McEnroe 2018-11-29Add basic log replayJune McEnroe 2018-11-29Show unread count in term titleJune McEnroe 2018-11-29Handle no such nick errorJune McEnroe 2018-11-29Add /whoisJune McEnroe 2018-11-29Set LIBRESSL_PREFIX in Darwin.mkJune McEnroe 2018-11-28Add NetBSD.mkJune McEnroe 2018-11-28Make use of config.mk and add Darwin.mkJune McEnroe