From: Martin Mares Date: Sun, 28 Apr 2002 15:46:04 +0000 (+0000) Subject: Added bitsig_free(). X-Git-Tag: holmes-import~1436 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=318a88602c0c1b46da4a5aea6d7f376c2fcd8829;p=libucw.git Added bitsig_free(). --- diff --git a/lib/bitsig.c b/lib/bitsig.c index 2e8d5c1f..304ee002 100644 --- a/lib/bitsig.c +++ b/lib/bitsig.c @@ -43,6 +43,7 @@ #include "lib/md5.h" #include +#include struct bitsig { uns l, m, n, maxn, max_m_mult; @@ -73,6 +74,12 @@ bitsig_init(uns perrlog, uns maxn) return b; } +void +bitsig_free(struct bitsig *b) +{ + xfree(b); +} + static void bitsig_hash_init(struct bitsig *b, byte *item) { diff --git a/lib/bitsig.h b/lib/bitsig.h index 88aba524..65e25b15 100644 --- a/lib/bitsig.h +++ b/lib/bitsig.h @@ -7,5 +7,6 @@ struct bitsig; struct bitsig *bitsig_init(uns perrlog, uns maxn); +void bitsig_free(struct bitsig *b); int bitsig_member(struct bitsig *b, byte *item); int bitsig_insert(struct bitsig *b, byte *item);