Skip to content

Commit

Permalink
imc: destroy db only if db_mode is not 0
Browse files Browse the repository at this point in the history
  • Loading branch information
joeygo authored and miconda committed Dec 7, 2022
1 parent b94e158 commit c6c5a4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/imc/imc.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,9 @@ static void destroy(void)
db_key_t rq_cols[4];
db_val_t rq_vals[4];

if (db_mode == 0)
goto done;

if(imc_db==NULL)
goto done;

Expand Down

0 comments on commit c6c5a4e

Please sign in to comment.