Skip to content

Instantly share code, notes, and snippets.

@scriptum
Last active December 27, 2015 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scriptum/7282262 to your computer and use it in GitHub Desktop.
Save scriptum/7282262 to your computer and use it in GitHub Desktop.
Geany plugins cppcheck result
$ ./cppcheck ../geany-plugins --library=geany `pkg-config --cflags glib-2.0` --max-configs=1 -j32 -q --template=gcc
../geany-plugins/debugger/src/tpage.c:117: error: Allocation with g_path_get_dirname, strcpy doesn't release it.
../geany-plugins/debugger/src/dbm_gdb.c:762: error: Memory leak: unescaped
../geany-plugins/geanylatex/src/templates.c:84: error: Memory leak: tmp_basedir
../geany-plugins/geanylatex/src/geanylatex.c:974: error: Mismatching allocation and deallocation: template_string
../geany-plugins/geanyprj/src/utils.c:72: error: Memory leak: v
../geany-plugins/geanysendmail/src/geanysendmail.c:114: error: Memory leak: cmd_str
../geany-plugins/geanysendmail/src/geanysendmail.c:173: error: Memory leak: config
../geany-plugins/geniuspaste/src/geniuspaste.c:223: error: Memory leak: f_title
../geany-plugins/devhelp/devhelp/ige-conf-mac.c:326: error: Memory leak: data
../geany-plugins/geanyminiscript/src/gms_gui.c:582: error: Memory pointed to by 'flag' is freed twice.
../geany-plugins/geanyminiscript/src/gms_gui.c:583: error: Memory pointed to by 'flag' is freed twice.
../geany-plugins/geanyminiscript/src/gms_gui.c:584: error: Memory pointed to by 'flag' is freed twice.
../geany-plugins/scope/src/menu.c:461: error: Returning/dereferencing 'expr' after it is deallocated / released
../geany-plugins/geanyvc/src/utils.c:47: error: Memory leak: v
../geany-plugins/gproject/src/gproject-project.c:348: error: Mismatching allocation and deallocation: source_patterns
../geany-plugins/gproject/src/gproject-project.c:349: error: Mismatching allocation and deallocation: header_patterns
../geany-plugins/gproject/src/gproject-project.c:350: error: Mismatching allocation and deallocation: ignored_dirs_patterns
../geany-plugins/treebrowser/src/treebrowser.c:688: error: Memory leak: bookmarks
../geany-plugins/treebrowser/src/treebrowser.c:1106: error: Deallocating a deallocated pointer: uri_parent
../geany-plugins/treebrowser/src/treebrowser.c:1634: error: Deallocating a deallocated pointer: dirname
Some interesting warnings:
../geany-plugins/updatechecker/src/updatechecker.c:146: warning: Assignment of function parameter has no effect outside the function.
../geany-plugins/geanylatex/src/geanylatex.c:1537: warning: Logical conjunction always evaluates to false: documentclass_int == 3 && documentclass_int == 4
../geany-plugins/geanypg/src/verify_aux.c:117: warning: The buffer 'created' may not be null-terminated after the call to strncpy().
../geany-plugins/geanypg/src/verify_aux.c:122: warning: The buffer 'expires' may not be null-terminated after the call to strncpy().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment