Skip to content

Commit

Permalink
Fix potential small memory leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
msimms committed Aug 5, 2024
1 parent f37397a commit 0b17ab1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Activities/ActivityMgr.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1254,6 +1254,10 @@ bool ComputeWheelCircumference(const char* const gearId)
{
free((void*)bikeName);
}
if (description)
{
free((void*)description);
}
}

g_dbLock.unlock();
Expand Down

0 comments on commit 0b17ab1

Please sign in to comment.