sblim-cmpi-base/sblim-cmpi-base-1.6.0-missing-fclose.patch
DistroBaker d25deeb4bf Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/sblim-cmpi-base.git#11722b2d4b8fb375e4ffe28d82347e7412044350
2020-12-16 22:16:22 +00:00

15 lines
474 B
Diff

Index: OSBase_OperatingSystemStatisticalData.c
===================================================================
--- OSBase_OperatingSystemStatisticalData.c.orig
+++ OSBase_OperatingSystemStatisticalData.c
@@ -155,6 +155,7 @@ int get_cpu_page_data_24(struct os_stati
if ((f = fopen(DATA_FILE,"r")) != NULL) {
read_count = fread(buf,sizeof(char),sizeof(buf)-1,f);
buf[read_count] = '\0';
+ fclose(f);
/* read cpu data
*