From 74b4104994b652f3a79682cba112219ce78f316d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 17 Jun 2015 00:25:05 +0000 Subject: [PATCH] iscsi-scstd: Avoid that Coverity complains about a use-after-free git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6374 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/usr/iscsi_scstd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iscsi-scst/usr/iscsi_scstd.c b/iscsi-scst/usr/iscsi_scstd.c index c2ff33df7..777744e1a 100644 --- a/iscsi-scst/usr/iscsi_scstd.c +++ b/iscsi-scst/usr/iscsi_scstd.c @@ -761,10 +761,10 @@ static void event_loop(void) */ if (!sess && conn->sessions_count_incremented) conn->target->sessions_count--; - conn_free(conn); log_debug(1, "conn %p freed (sess %p, empty %d)", conn, sess, sess ? list_empty(&sess->conn_list) : -1); + conn_free(conn); if (sess && list_empty(&sess->conn_list)) session_free(sess); }