summaryrefslogtreecommitdiff
path: root/src/plugins/lan/lan.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lan/lan.c')
-rw-r--r--src/plugins/lan/lan.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/plugins/lan/lan.c b/src/plugins/lan/lan.c
index fb1a633..dd90706 100644
--- a/src/plugins/lan/lan.c
+++ b/src/plugins/lan/lan.c
@@ -2005,12 +2005,7 @@ ipmi_lan_close(struct ipmi_intf * intf)
close(intf->fd);
ipmi_req_clear_entries();
-
- if (intf->session != NULL) {
- free(intf->session);
- intf->session = NULL;
- }
-
+ ipmi_intf_session_cleanup(intf);
intf->opened = 0;
intf->manufacturer_id = IPMI_OEM_UNKNOWN;
intf = NULL;