[systemd-devel] [systemd PATCH 1/2] Fix mismatching pipe close opened by popen()

Thomas Jarosch thomas.jarosch at intra2net.com
Fri Jan 25 04:58:54 PST 2013


cppcheck reported:
[src/bootchart/svg.c:791]: (error) Mismatching allocation and deallocation: f

Signed-off-by: Thomas Jarosch <thomas.jarosch at intra2net.com>
---
 src/bootchart/svg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c
index 156918a..550f769 100644
--- a/src/bootchart/svg.c
+++ b/src/bootchart/svg.c
@@ -788,7 +788,7 @@ static void svg_do_initcall(int count_only)
                 kcount++;
         }
 
-        fclose(f);
+        pclose(f);
 }
 
 
-- 
1.7.11.7



More information about the systemd-devel mailing list