Reported by Bruno Haible.
https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
* lib/bitset/vector.c (vbitset_free): New.
(vbitset_vtable): Use it.
+2019-03-19 Akim Demaille <akim@lrde.epita.fr>
+
+ bitset: fix memory leaks
+ Reported by Bruno Haible.
+ https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
+ * lib/bitset/vector.c (vbitset_free): New.
+ (vbitset_vtable): Use it.
+
2019-03-19 Akim Demaille <akim@lrde.epita.fr>
bitset: minor changes
}
+static void
+vbitset_free (bitset bset)
+{
+ free (VBITSET_WORDS (bset));
+}
+
+
/* Vector of operations for multiple word bitsets. */
struct bitset_vtable vbitset_vtable = {
vbitset_set,
vbitset_or_and_cmp,
vbitset_list,
vbitset_list_reverse,
- NULL,
+ vbitset_free,
BITSET_VECTOR
};