Closed alfred-ai closed 6 years ago
CppCheck reported a memory leak here: https://github.com/staticlibs/ccronexpr/blob/7687339ce8b8d9bb7c11fbb809cf6b64da827a72/ccronexpr.c#L501
This is really a leak according to my understand of the code, where the memory is gone in case sprintf failed.
sprintf
Agree, looks like a real leak, cron_free should be added into the res < 0 check. I can merge a PR for that or can add this change myself (will take a couple of days).
cron_free
res < 0
CppCheck reported a memory leak here: https://github.com/staticlibs/ccronexpr/blob/7687339ce8b8d9bb7c11fbb809cf6b64da827a72/ccronexpr.c#L501
This is really a leak according to my understand of the code, where the memory is gone in case
sprintf
failed.