diff options
author | mav <mav@FreeBSD.org> | 2010-06-05 08:07:54 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2010-06-05 08:07:54 +0000 |
commit | 265a7f94f26eab5e6686b88e30e3baeb14a4bb84 (patch) | |
tree | b2db38d9f2bea004042d21082255b3c157b9cc81 | |
parent | d49dd001960ee7b7c1ba09fc1237731abaf07fdf (diff) | |
download | FreeBSD-src-265a7f94f26eab5e6686b88e30e3baeb14a4bb84.zip FreeBSD-src-265a7f94f26eab5e6686b88e30e3baeb14a4bb84.tar.gz |
Plug memory leak to silent Coverity. Error is still not really handled.
Found with: Coverity Prevent(tm)
CID: 4130
-rw-r--r-- | sys/dev/ahci/ahci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ahci/ahci.c b/sys/dev/ahci/ahci.c index ab782eb..b41069e 100644 --- a/sys/dev/ahci/ahci.c +++ b/sys/dev/ahci/ahci.c @@ -2047,6 +2047,7 @@ ahci_issue_read_log(device_t dev) ataio = &ccb->ataio; ataio->data_ptr = malloc(512, M_AHCI, M_NOWAIT); if (ataio->data_ptr == NULL) { + xpt_free_ccb(ccb); device_printf(dev, "Unable allocate memory for READ LOG command"); return; /* XXX */ } |