Fix memory allocation error
@@ -332,8 +332,8 @@ bool forceUpdate = false;
{
rval = "Use main plugin";
}
- rp["default"].SetString(rval, strlen(rval));
- rp["value"].SetString(rval, strlen(rval));
+ rp["default"].SetString(strdup(rval), strlen(rval));
+ rp["value"].SetString(strdup(rval), strlen(rval));
logger->info("Storage configuration cache is up to date");
return;
}
