This commit is contained in:
Ben Meadors 2025-04-22 09:25:09 -05:00
parent 67d481940b
commit 35a5c29a98
2 changed files with 1 additions and 2 deletions

View File

@ -319,7 +319,6 @@ GPS_RESPONSE GPS::getACKCas(uint8_t class_id, uint8_t msg_id, uint32_t waitMilli
return GNSS_RESPONSE_NONE;
}
// Fix memory leak in getACK where buffer is allocated but not properly managed
GPS_RESPONSE GPS::getACK(uint8_t class_id, uint8_t msg_id, uint32_t waitMillis)
{
uint8_t b;

View File

@ -73,7 +73,7 @@ class GPS : private concurrency::OSThread
// Store pointers to transformers for cleanup
GpioTransformer *pinTransformer = NULL;
// Added pointers to manage GPIO transformers to fix memory leak
// Add pointers to manage GPIO transformers to prevent memory leak
GpioUnaryTransformer *gpioUnaryTransformer = NULL;
GpioNotTransformer *gpioNotTransformer = NULL;