[Mesa-dev] [PATCH] ddebug: use pclose to close a popen()'d FILE

Nicolai Hähnle nhaehnle at gmail.com
Wed Jul 27 14:48:46 UTC 2016


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

Found by Coverity.
---
 src/gallium/drivers/ddebug/dd_draw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/ddebug/dd_draw.c b/src/gallium/drivers/ddebug/dd_draw.c
index a54cecb..d3c4e7f 100644
--- a/src/gallium/drivers/ddebug/dd_draw.c
+++ b/src/gallium/drivers/ddebug/dd_draw.c
@@ -70,7 +70,7 @@ dd_dump_dmesg(FILE *f)
    while (fgets(line, sizeof(line), p))
       fputs(line, f);
 
-   fclose(p);
+   pclose(p);
 }
 
 static void
-- 
2.7.4



More information about the mesa-dev mailing list