Skip to contentSkip to conversation

xfsprogs: fix agcnts leak in xfs_repair's scan_ags

PATCH In review Eric Sandeen 2 participants 2 messages Aug 1, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfsprogs: fix agcnts leak in xfs_repair's scan_ags

agcnts is malloc'd but never freed in this function.

Coverity found this.

---

repair/scan.c +2 -0
index 76bb7f1..4040f53 100644
@@ -1367,6 +1367,8 @@ scan_ags(
 		ifreecount += agcnts[i].ifreecount;
 	}
 
+	free(agcnts);
+
 	/*
 	 * Validate that our manual counts match the superblock.
 	 */

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs