diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 881d36d9..21232a96 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -939,7 +939,8 @@ std::string systemInfoRequest(eHyprCtlOutputFormat format, std::string request) GPUINFO += "Driver Description: " + description + "\n"; result += GPUINFO; - + drmFreeVersion(version); + close(fd); if (GPUINFO.contains("NVIDIA") && std::filesystem::exists("/proc/driver/nvidia/version")) result += execAndGet("cat /proc/driver/nvidia/version | grep NVRM"); diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index a7d9f33d..a4dfcc0a 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -627,6 +627,8 @@ void logSystemInfo() { GPUINFO += "Driver Description: " + description + "\n"; Debug::log(LOG, "GPU information:\n{}\n", GPUINFO); + drmFreeVersion(version); + close(fd); if (GPUINFO.contains("NVIDIA")) { Debug::log(WARN, "Warning: you're using an NVIDIA GPU. Make sure you follow the instructions on the wiki if anything is amiss.\n");