summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-07-27 16:48:07 +0200
committerNicolai Hähnle <[email protected]>2016-07-28 10:47:51 +0100
commitbade0cd0fbbf8004626e485806973d18f493749a (patch)
treebee64a6cf64d98cbdba9995e05e9d6d55923ecdc /src/gallium/drivers
parent21556d86fc74d91ab58a7496a876ad33e0f950df (diff)
ddebug: use pclose to close a popen()'d FILE
Found by Coverity. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/ddebug/dd_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/ddebug/dd_draw.c b/src/gallium/drivers/ddebug/dd_draw.c
index a54cecb5f08..d3c4e7f5e9c 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