Fix use-after-free
Some checks failed
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=OFF (push) Failing after 19s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=OFF (push) Failing after 23s
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=ON (push) Failing after 20s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=ON (push) Failing after 17s
CMake / ubuntu-latest - shared=OFF, pthread=ON, posix=ON (push) Failing after 14s
CMake / ubuntu-latest - shared=ON, pthread=ON, posix=ON (push) Failing after 10s

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-08-04 03:36:41 +03:00
parent 75c2f27f8b
commit da1725982c
2 changed files with 4 additions and 3 deletions

View File

@@ -1984,6 +1984,7 @@ bool dcfg_Value_evaluate_in_env(
}
if (!ret) {
dcfg_destroy(*out_value);
*out_value = NULL;
}
return ret;
}