diff options
author | Nicolai Hähnle <[email protected]> | 2016-07-27 16:48:07 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-07-28 10:47:51 +0100 |
commit | bade0cd0fbbf8004626e485806973d18f493749a (patch) | |
tree | bee64a6cf64d98cbdba9995e05e9d6d55923ecdc | |
parent | 21556d86fc74d91ab58a7496a876ad33e0f950df (diff) |
ddebug: use pclose to close a popen()'d FILE
Found by Coverity.
Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r-- | src/gallium/drivers/ddebug/dd_draw.c | 2 |
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 |