[PATCH] Coverity: Resource leak: free array before return

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 Assemble.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Assemble.c b/Assemble.c
index 123d44a..d21ef1c 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -1851,6 +1851,7 @@ try_again:
 	if (rv == 1 && !pre_exist)
 		ioctl(mdfd, STOP_ARRAY, NULL);
 	free(devices);
+	free(avail);
 	map_unlock(&map);
 out:
 	if (rv == 0) {
-- 
2.13.7

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux