nixpkgs/pkgs/by-name/dr/dragmap/stdio-pclose.patch
Alexis Praga c35f615aea dragmap: init at 1.3.0
Genomic mapper. Open-source version of DRAGEN.
Tests are run during execution with google-tests.
2024-11-18 22:35:37 +01:00

13 lines
534 B
Diff

diff --git a/stubs/dragen/src/host/infra/linux/infra_linux_utils.cpp b/stubs/dragen/src/host/infra/linux/infra_linux_utils.cpp
index cd02cd4..c26e9cf 100644
--- a/stubs/dragen/src/host/infra/linux/infra_linux_utils.cpp
+++ b/stubs/dragen/src/host/infra/linux/infra_linux_utils.cpp
@@ -57,7 +57,6 @@ int GetDmiValue(const std::string& label, std::string& value)
FILE* dmiOutput = popen("sudo /usr/sbin/dmidecode -t 2", "r");
if (dmiOutput == NULL) {
perror("dmidecode popen");
- pclose(dmiOutput);
return -1;
}