Skip to content

Commit

Permalink
Remove beforenm structures for a key.
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Feb 11, 2014
1 parent fa23d76 commit 052708a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/curve.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,12 @@ rdns_curve_client_key_ref (struct rdns_curve_client_key *key)
static void
rdns_curve_client_key_unref (struct rdns_curve_client_key *key)
{
struct rdns_curve_nm_entry *nm, *tmp;

if (--key->ref == 0) {
DL_FOREACH_SAFE (key->nms, nm, tmp) {
free (nm);
}
free (key);
}
}
Expand Down

0 comments on commit 052708a

Please sign in to comment.