Fix possible memleaks

This commit is contained in:
李通洲
2022-10-06 18:21:10 +08:00
parent c0daeb16df
commit 015ad4a307
+3
View File
@@ -99,7 +99,10 @@ static bool printCachedValue(FFinstance* instance, const char* moduleName, const
ffStrbufTrimRight(&content, '\0'); //Strbuf always appends a '\0' at the end. We want the last null byte to be at the position of the length
if(content.length == 0)
{
ffStrbufDestroy(&content);
return false;
}
uint8_t moduleCounter = 1;