From 0b17ab1a6ed9db32fe47a1c3382eb4811f902cad Mon Sep 17 00:00:00 2001 From: Mike Simms Date: Sun, 4 Aug 2024 20:04:20 -0400 Subject: [PATCH] Fix potential small memory leak. --- Activities/ActivityMgr.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Activities/ActivityMgr.mm b/Activities/ActivityMgr.mm index 01379a2..26387ab 100644 --- a/Activities/ActivityMgr.mm +++ b/Activities/ActivityMgr.mm @@ -1254,6 +1254,10 @@ bool ComputeWheelCircumference(const char* const gearId) { free((void*)bikeName); } + if (description) + { + free((void*)description); + } } g_dbLock.unlock();