xfsprogs: fix agcnts leak in xfs_repair's scan_ags
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.
Signed-off-by Eric Sandeen <[email protected]>
---
repair/scan.c +2 -0
@@ -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
Quoted 7 lines · Eric Sandeen
agcnts is malloc'd but never freed in this function.
Coverity found this.
Signed-off-by Eric Sandeen<[email protected]>---
Looks good.
Reviewed-by Mark Tinguely <[email protected]>
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs