Feature: clean shutdown

This commit is contained in:
Patrick Siegl
2019-03-27 00:23:54 +01:00
parent b5dce0e23b
commit 3cfcbd94d7
5 changed files with 43 additions and 1 deletions

View File

@@ -61,6 +61,10 @@ void inmWriteEntropyStart(uint32_t bufLen, bool debug) {
}
}
void inmWriteEntropyEnd() {
free( inmPoolInfo );
}
// Block until either the entropy pool has room, or 1 minute has passed.
void inmWaitForPoolToHaveRoom() {
int ent_count;