diff --git a/add-ons/src/mender-inventory.c b/add-ons/src/mender-inventory.c index 68400e3..3365dbd 100755 --- a/add-ons/src/mender-inventory.c +++ b/add-ons/src/mender-inventory.c @@ -176,6 +176,7 @@ mender_inventory_exit(void) { mender_inventory_keystore = NULL; mender_scheduler_mutex_give(mender_inventory_mutex); mender_scheduler_mutex_delete(mender_inventory_mutex); + mender_inventory_mutex = NULL; return ret; }