ddebug: use pclose to close a popen()'d FILE
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 27 Jul 2016 14:48:07 +0000 (16:48 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 28 Jul 2016 09:47:51 +0000 (10:47 +0100)
Found by Coverity.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/ddebug/dd_draw.c

index a54cecb5f085d23da2b558d94e12bec7240a846a..d3c4e7f5e9c766853143cf4d4f59b19916429458 100644 (file)
@@ -70,7 +70,7 @@ dd_dump_dmesg(FILE *f)
    while (fgets(line, sizeof(line), p))
       fputs(line, f);
 
-   fclose(p);
+   pclose(p);
 }
 
 static void