mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
cpuplugd: close config file after use in parse_configfile()
Resolves Cppcheck error: [cpuplugd/config.c:204]: (error) Resource leak: filp Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com> Signed-off-by: Jens Remus <jremus@linux.ibm.com> Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*
|
||||
* Config file parsing
|
||||
*
|
||||
* Copyright IBM Corp. 2007, 2017
|
||||
* Copyright IBM Corp. 2007, 2018
|
||||
*
|
||||
* s390-tools is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the MIT license. See LICENSE for details.
|
||||
@@ -201,6 +201,7 @@ void parse_configfile(char *file)
|
||||
linebuffer);
|
||||
parse_configline(linebuffer);
|
||||
}
|
||||
fclose(filp);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user