From a23297eb40babb6aab7c063c29061861c5378f45 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 12 Jan 2011 18:37:11 +0000 Subject: [PATCH] Minor memory leak fixed git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3210 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t/qla2x00-target/qla2x00t.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qla2x00t/qla2x00-target/qla2x00t.c b/qla2x00t/qla2x00-target/qla2x00t.c index 035665ef6..b29574422 100644 --- a/qla2x00t/qla2x00-target/qla2x00t.c +++ b/qla2x00t/qla2x00-target/qla2x00t.c @@ -5358,6 +5358,8 @@ retry: "discovery (counter was %d, new %d), retrying", ha->instance, global_resets, atomic_read(&ha->tgt->tgt_global_resets_count)); + kfree(fcport); + fcport = NULL; goto retry; }