Commit 4d9eb4dd authored by teor's avatar teor
Browse files

test/shared-random: Stop leaking shared random state in the unit tests

Stop leaking parts of the shared random state in the shared-random unit
tests.

Fixes bug 29599; bugfix on 0.2.9.1-alpha.
parent 4417ac88
Loading
Loading
Loading
Loading

changes/bug29599

0 → 100644
+3 −0
Original line number Diff line number Diff line
  o Minor bugfixes (memory management, testing):
    - Stop leaking parts of the shared random state in the shared-random unit
      tests. Fixes bug 29599; bugfix on 0.2.9.1-alpha.
+3 −2
Original line number Diff line number Diff line
@@ -594,8 +594,8 @@ test_vote(void *arg)
  }

 done:
  sr_commit_free(our_commit);
  UNMOCK(trusteddirserver_get_by_v3_auth_digest);
  sr_state_free();
}

static const char *sr_state_str = "Version 1\n"
@@ -829,6 +829,7 @@ test_sr_compute_srv(void *arg)

 done:
  UNMOCK(trusteddirserver_get_by_v3_auth_digest);
  sr_state_free();
}

/** Return a minimal vote document with a current SRV value set to
@@ -1094,7 +1095,7 @@ test_state_transition(void *arg)
  }

 done:
  return;
  sr_state_free();
}

static void