From: Nicolai Hähnle Date: Wed, 27 Jul 2016 14:48:07 +0000 (+0200) Subject: ddebug: use pclose to close a popen()'d FILE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bade0cd0fbbf8004626e485806973d18f493749a;p=mesa.git ddebug: use pclose to close a popen()'d FILE Found by Coverity. Reviewed-by: Marek Olšák --- 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