Skip to content

Commit

Permalink
src/pmlogdump/pmlogdump.c: coverity (picky) fixes
Browse files Browse the repository at this point in the history
Don't need a couple of tests for NULL.

Fixes CID 424599 and CID 424598.
  • Loading branch information
kmcdonell committed Mar 22, 2024
1 parent c69d3af commit a86ec83
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pmlogdump/pmlogdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,7 @@ dumpDesc(void)
pmPrintDesc(stdout, dp);
}

if (desclist != NULL)
free(desclist);
free(desclist);
}

static void
Expand Down Expand Up @@ -726,8 +725,7 @@ dumpInDom(void)
}
}

if (indomlist != NULL)
free(indomlist);
free(indomlist);
}

static void
Expand Down

0 comments on commit a86ec83

Please sign in to comment.