Skip to content

Commit

Permalink
Fix coverity issue (netdata#19535)
Browse files Browse the repository at this point in the history
Better fix coverity issue, always cleanup
  • Loading branch information
stelfrag authored Jan 30, 2025
1 parent cf03e53 commit 4531eba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/database/sqlite/sqlite_aclk.c
Original file line number Diff line number Diff line change
Expand Up @@ -882,10 +882,8 @@ static void aclk_synchronization(void *arg)
(void) uv_loop_close(loop);

// Free execute commands / queries
if (pending_queries) {
free_query_list(aclk_query_execute->JudyL);
(void)JudyLFreeArray(&aclk_query_execute->JudyL, PJE0);
}
free_query_list(aclk_query_execute->JudyL);
(void)JudyLFreeArray(&aclk_query_execute->JudyL, PJE0);
freez(aclk_query_execute);

// Free batch commands
Expand Down

0 comments on commit 4531eba

Please sign in to comment.