diff options
Diffstat (limited to 'src/secretsharing/secretsharing_common.c')
-rw-r--r-- | src/secretsharing/secretsharing_common.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/secretsharing/secretsharing_common.c b/src/secretsharing/secretsharing_common.c index 2f5b3f583..c1e5acb9c 100644 --- a/src/secretsharing/secretsharing_common.c +++ b/src/secretsharing/secretsharing_common.c | |||
@@ -135,3 +135,16 @@ GNUNET_SECRETSHARING_share_write (const struct GNUNET_SECRETSHARING_Share *share | |||
135 | } | 135 | } |
136 | 136 | ||
137 | 137 | ||
138 | void | ||
139 | GNUNET_SECRETSHARING_share_destroy (struct GNUNET_SECRETSHARING_Share *share) | ||
140 | { | ||
141 | GNUNET_free (share->original_indices); | ||
142 | share->original_indices = NULL; | ||
143 | GNUNET_free (share->sigmas); | ||
144 | share->sigmas = NULL; | ||
145 | GNUNET_free (share->peers); | ||
146 | share->peers = NULL; | ||
147 | GNUNET_free (share); | ||
148 | } | ||
149 | |||
150 | |||