forked from pool/ipmitool
23 lines
567 B
Diff
23 lines
567 B
Diff
|
Fix unclosed file handle in ipmi_sdradd.c
|
||
|
|
||
|
References:
|
||
|
https://bugzilla.novell.com/show_bug.cgi?id=534909
|
||
|
|
||
|
Signed-off-by: Thomas Renninger <trenn@suse.de>
|
||
|
---
|
||
|
lib/ipmi_sdradd.c | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
Index: ipmitool-1.8.11/lib/ipmi_sdradd.c
|
||
|
===================================================================
|
||
|
--- ipmitool-1.8.11.orig/lib/ipmi_sdradd.c
|
||
|
+++ ipmitool-1.8.11/lib/ipmi_sdradd.c
|
||
|
@@ -380,6 +380,7 @@ ipmi_sdr_read_records(const char *filena
|
||
|
queue->tail->next = sdrr;
|
||
|
queue->tail = sdrr;
|
||
|
}
|
||
|
+ close(fd);
|
||
|
return rc;
|
||
|
}
|
||
|
|