Open openhpi2 opened 11 years ago
We should not delete r and then remove it from the list as r has an undefined value then.
--- plugins/ipmidirect/ipmi_con.cpp (revision 7544) +++ plugins/ipmidirect/ipmi_con.cpp (working copy) @@ -51,9 +51,9 @@ while( m_queue ) { cIpmiRequest r = (cIpmiRequest )m_queue->data;
Reported by: mbaldessari
*_ATTENTION_** This account is disabled and is no longer accessed by the recipient. Please remove it from your address book.
Thanks
Original comment by: tariqx
Original comment by: dr_mohan
We should not delete r and then remove it from the list as r has an undefined value then.
Index: plugins/ipmidirect/ipmi_con.cpp
--- plugins/ipmidirect/ipmi_con.cpp (revision 7544) +++ plugins/ipmidirect/ipmi_con.cpp (working copy) @@ -51,9 +51,9 @@ while( m_queue ) { cIpmiRequest r = (cIpmiRequest )m_queue->data;
m_queue = g_list_remove( m_queue, r ); + delete r;
Reported by: mbaldessari