1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-20 07:59:00 +00:00
Eric Blake 701bee0193 hash: fix memory leak regression
Commit 1671d1d introduced a memory leak in virHashFree, and
wholesale table corruption in virHashRemoveSet (elements not
requested to be freed are lost).

* src/util/hash.c (virHashFree): Free bucket array.
(virHashRemoveSet): Don't lose elements.
* tests/hashtest.c (testHashCheckForEachCount): New method.
(testHashCheckCount): Expose the bug.
2011-04-29 14:26:40 -06:00
..
2010-05-12 08:41:10 +02:00
2011-04-29 10:21:20 -06:00
2011-04-29 10:21:20 -06:00
2011-04-29 10:21:20 -06:00
2011-04-29 14:26:40 -06:00
2011-03-28 09:55:46 -06:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2011-04-29 10:21:20 -06:00
2010-04-02 10:18:55 -06:00
2011-04-29 10:21:20 -06:00
2011-04-29 10:21:20 -06:00
2011-04-29 10:21:20 -06:00
2010-05-12 08:41:10 +02:00
2011-04-29 10:21:20 -06:00
2011-04-29 10:21:20 -06:00
2010-05-12 08:41:10 +02:00
2011-04-29 10:21:20 -06:00
2011-04-29 10:21:20 -06:00
2009-07-16 15:06:42 +02:00
2010-05-12 08:41:10 +02:00
2010-05-12 08:41:10 +02:00
2011-04-29 10:21:20 -06:00
2010-05-12 08:41:10 +02:00
2010-05-12 08:41:10 +02:00
2010-05-12 08:41:10 +02:00
2011-04-29 10:21:20 -06:00
2011-04-29 10:21:20 -06:00
2011-04-29 10:21:20 -06:00
2011-04-29 10:21:20 -06:00
2011-04-29 10:21:20 -06:00
2011-04-29 10:21:20 -06:00