summaryrefslogtreecommitdiff
path: root/configfile.h
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2013-03-04 13:25:33 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2013-03-04 19:55:12 -0500
commit1268afe83692cb8a9ea839ab979d82458da2d03d (patch)
tree6c70b3b3e37ec08a07a93e3f2fa56cfcc77e8178 /configfile.h
parent1a5e8633ce3ec7f3a82bc0f4ca5ca810473714b9 (diff)
downloadcgit-1268afe83692cb8a9ea839ab979d82458da2d03d.tar.gz
cgit-1268afe83692cb8a9ea839ab979d82458da2d03d.tar.bz2
cgit-1268afe83692cb8a9ea839ab979d82458da2d03d.zip
Free reflists after usage
Free reflists in cgit_print_branches() and in cgit_print_tags() before returning reflist structures to the stack. This fixes following memory leaks seen with "PATH_INFO=/cgit/refs/": ==5710== 1,312 (32 direct, 1,280 indirect) bytes in 1 blocks are definitely lost in loss record 63 of 71 ==5710== at 0x4C2C04B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==5710== by 0x4C2C2FF: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==5710== by 0x46CA9B: xrealloc (wrapper.c:100) ==5710== by 0x40AAA6: cgit_add_ref (shared.c:156) ==5710== by 0x40ABC4: cgit_refs_cb (shared.c:186) ==5710== by 0x44BCBA: do_one_ref (refs.c:527) ==5710== by 0x44D240: do_for_each_ref_in_dir (refs.c:553) ==5710== by 0x44D6BA: do_for_each_ref (refs.c:1298) ==5710== by 0x410FE2: cgit_print_branches (ui-refs.c:191) ==5710== by 0x4111E9: cgit_print_refs (ui-refs.c:244) ==5710== by 0x407C85: refs_fn (cmd.c:105) ==5710== by 0x405DDF: process_request (cgit.c:566) ==5710== ==5710== 6,846 (256 direct, 6,590 indirect) bytes in 1 blocks are definitely lost in loss record 68 of 71 ==5710== at 0x4C2C25E: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==5710== by 0x46CA9B: xrealloc (wrapper.c:100) ==5710== by 0x40AAA6: cgit_add_ref (shared.c:156) ==5710== by 0x40ABC4: cgit_refs_cb (shared.c:186) ==5710== by 0x44BCBA: do_one_ref (refs.c:527) ==5710== by 0x44D240: do_for_each_ref_in_dir (refs.c:553) ==5710== by 0x44D6EC: do_for_each_ref (refs.c:1288) ==5710== by 0x4110D5: cgit_print_tags (ui-refs.c:218) ==5710== by 0x4111FD: cgit_print_refs (ui-refs.c:246) ==5710== by 0x407C85: refs_fn (cmd.c:105) ==5710== by 0x405DDF: process_request (cgit.c:566) ==5710== by 0x407490: cache_process (cache.c:322) Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'configfile.h')
0 files changed, 0 insertions, 0 deletions
/portato.git/commit/portato/gui/windows/mailinfo.py?id=c8fab8cd56c88d2322104afc960c836a543cd3d6&follow=1'>Send more files for bug mailsRené 'Necoro' Neumann4-118/+194 2010-03-14Rewrote Session as to use the normal ConfigParser and not our own oneRené 'Necoro' Neumann2-68/+50 2010-03-07Fix setup.pyRené 'Necoro' Neumann1-1/+1 2010-03-06Read translators from fileRené 'Necoro' Neumann4-9/+8 2010-03-06Updated NEWSRené 'Necoro' Neumann1-0/+3 2010-03-06Improved setup.py; also install the better-icon imageRené 'Necoro' Neumann1-8/+21 2010-03-06Only show best_icon, if the package can be installed w/o unmaskingRené 'Necoro' Neumann1-2/+2 2010-03-06Improved better_icon.René 'Necoro' Neumann1-78/+38 2010-03-06Show icon to signal the best package versionRené 'Necoro' Neumann1-1/+15 2010-03-06improved image handlingRené 'Necoro' Neumann2-7/+3 2010-03-05Use 'clear' instead of 'delete' for the search lineRené 'Necoro' Neumann1-1/+1 2010-03-05Corrected typoRené 'Necoro' Neumann6-9/+9 2010-03-05Updated german translationRené 'Necoro' Neumann2-538/+528 2010-03-05Reorderd parts of the menuRené 'Necoro' Neumann1-3/+3 2010-03-05Use existing translation for search typesRené 'Necoro' Neumann1-1/+1 2010-03-05Fixed bug in preference windowRené 'Necoro' Neumann1-2/+0 2010-03-05Fixed copyrightRené 'Necoro' Neumann66-66/+66 2010-03-05Handle portage warnings by our logging systemRené 'Necoro' Neumann1-0/+10 2010-03-05Ignore swap files in gitRené 'Necoro' Neumann1-0/+1 2010-03-05Clean up one 'deprecated' message from portageRené 'Necoro' Neumann1-1/+1 2010-03-05Save current search type in sessionRené 'Necoro' Neumann2-6/+17 2010-03-05Added combo box for selecting the search type to main windowRené 'Necoro' Neumann3-5/+43 2010-03-05Previous commits done more correct :PRené 'Necoro' Neumann2-6/+6 2010-03-05Fix commit 7449bc5fb8fRené 'Necoro' Neumann1-3/+3 2010-03-05Ignore swap files in gitRené 'Necoro' Neumann1-0/+1 2010-03-05Added some textual descriptionsRené 'Necoro' Neumann2-1/+8 2010-03-05Add description support to the databasesRené 'Necoro' Neumann4-8/+55 2010-03-04Also parse descriptions from eixRené 'Necoro' Neumann1-2/+2 2009-11-08Added Italian translation. Thanks to Ponsi.René 'Necoro' Neumann3-0/+1166 2009-11-05Remove the 'geneticize_list' stuff. It is so ancient, it stinks :PRené 'Necoro' Neumann1-19/+6