commit | 1faec2c1344fd2725152a6944dc5ac2525999ec6 | [log] [tgz] |
---|---|---|
author | Leandro Pereira <leandro@hardinfo.org> | Fri Oct 12 12:28:56 2012 -0300 |
committer | Lucas De Marchi <lucas.de.marchi@gmail.com> | Fri Oct 12 12:34:27 2012 -0300 |
tree | c9dcac4eccaefa140399950d407ddee1ff8a62b6 | |
parent | 66f3228d17d66d7e2dd484427259290fbc82b2f0 [diff] |
libkmod-hash: Plug possible memory leak when free_value is defined Although the hash table implementation allows passing a callback function to free a value when it is removed from the hash table, hash_del() wasn't freeing it if it was provided. Now it does. As a bonus, it now checks if the callback is set in hash_add() as well.