Skip to content

Commit

Permalink
fixup! Turn rpmts->nrefs into atomic_int
Browse files Browse the repository at this point in the history
Style fixups.
  • Loading branch information
dmnks committed Oct 14, 2024
1 parent 81417e1 commit a933401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rpmts.cc
Original file line number Diff line number Diff line change
Expand Up @@ -944,11 +944,11 @@ static void rpmtsPrintStats(rpmts ts)

rpmts rpmtsFree(rpmts ts)
{
if (ts == NULL || (--(ts->nrefs)) > 0)
if (ts == NULL || --ts->nrefs > 0)
return NULL;

/* Cleanup still needs to rpmtsLink() and rpmtsFree() */
ts = rpmtsLink(ts);
ts = rpmtsLink(ts);

/* Don't issue element change callbacks when freeing */
rpmtsSetChangeCallback(ts, NULL, NULL);
Expand Down

0 comments on commit a933401

Please sign in to comment.