Skip to content

Commit

Permalink
Fix resource leak and wrong sizeof
Browse files Browse the repository at this point in the history
  • Loading branch information
stelfrag committed Oct 27, 2022
1 parent 66e28a1 commit b643d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/engine/journalfile.c
Expand Up @@ -1100,7 +1100,7 @@ void migrate_journal_file_v2(

// FIXME: Lock check
PValue = JudyHSGet(pg_cache->metrics_index.JudyHS_array, metric_info->id, sizeof(uuid_t));
fatal_assert(NULL == PValue);
fatal_assert(NULL != PValue);
page_index = *PValue;
metric_info->page_index = page_index;
metric_info->page_count = JudyLCount(page_index->JudyL_array, 0, -1, PJE0);
Expand Down

0 comments on commit b643d8f

Please sign in to comment.