[Commits] [wesnoth/wesnoth] 5421c7: suppress false positive memory leak reported by va...

GitHub noreply at github.com
Tue Apr 7 02:16:27 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 5421c73be459babfdd92ce5799d4a9ae4a4ce6f7
      https://github.com/wesnoth/wesnoth/commit/5421c73be459babfdd92ce5799d4a9ae4a4ce6f7
  Author: Chris Beck <render787 at gmail.com>
  Date:   2015-04-06 (Mon, 06 Apr 2015)

  Changed paths:
    M src/formula_function.cpp

  Log Message:
  -----------
  suppress false positive memory leak reported by valgrind

This is basically the same as a patch I submitted to anura.

The problem is that a standard vector of pointers at static scope
is used to hold a bunch of heap allocated strings. At program
termination these are not deleted so they are reported as a leak.
We add a crude manager object to delete them and suppress the
error reports.





More information about the Commits mailing list