[Mesa-dev] [PATCH 7/9] intel: remove null check before free

Thomas Hindoe Paaboel Andersen phomes at gmail.com
Tue Apr 11 22:04:05 UTC 2017


---
 src/intel/tools/aubinator_error_decode.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/intel/tools/aubinator_error_decode.c b/src/intel/tools/aubinator_error_decode.c
index 2e62369..5df8aaf 100644
--- a/src/intel/tools/aubinator_error_decode.c
+++ b/src/intel/tools/aubinator_error_decode.c
@@ -727,8 +727,7 @@ main(int argc, char *argv[])
    close(1);
    wait(NULL);
 
-   if (xml_path)
-      free(xml_path);
+   free(xml_path);
 
    return EXIT_SUCCESS;
 }
-- 
2.9.3



More information about the mesa-dev mailing list