From 8d659f349e25875d976c76fb1753d6faabf4423e Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Sat, 5 Jun 2010 08:16:21 +0000 Subject: [PATCH] Plug memory leak to silent Coverity. Error is still not really handled. Found with: Coverity Prevent(tm) CID: 4196 --- sys/dev/siis/siis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/siis/siis.c b/sys/dev/siis/siis.c index edb9d12dff6..6b25d4b1557 100644 --- a/sys/dev/siis/siis.c +++ b/sys/dev/siis/siis.c @@ -1338,6 +1338,7 @@ siis_issue_read_log(device_t dev) ataio = &ccb->ataio; ataio->data_ptr = malloc(512, M_SIIS, M_NOWAIT); if (ataio->data_ptr == NULL) { + xpt_free_ccb(ccb); device_printf(dev, "Unable allocate memory for READ LOG command"); return; /* XXX */ }