From bade0cd0fbbf8004626e485806973d18f493749a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Wed, 27 Jul 2016 16:48:07 +0200 Subject: [PATCH] ddebug: use pclose to close a popen()'d FILE MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Found by Coverity. Reviewed-by: Marek Olšák --- 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 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 -- 2.30.2