]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - spaceman/freesp.c
xfs_spaceman: fix potential memory leak by malloc in scan_ag
authorBill O'Donnell <billodo@redhat.com>
Thu, 29 Jun 2017 18:05:41 +0000 (13:05 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 29 Jun 2017 18:05:41 +0000 (13:05 -0500)
commite177680d579619c54bf65adb7963e74e435eeb3b
tree9177793c6bf498eafb1a8666793a0ef7af81ca53
parentdb23e0f431a77d228b5f68ef0a8587c25c689133
xfs_spaceman: fix potential memory leak by malloc in scan_ag

scan_ag mallocs memory that is potentially leaked. Add a free
to alleviate the potential leak.

Addresses-Coverity-Id: 1413772

Signed-off-by: Bill O'Donnell <billodo@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
spaceman/freesp.c