Whamcloud - gitweb
LU-17000 coverity: Fix Resource Leak(0) 72/52272/4
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Tue, 5 Sep 2023 10:32:15 +0000 (16:02 +0530)
committerOleg Drokin <green@whamcloud.com>
Thu, 28 Sep 2023 08:00:45 +0000 (08:00 +0000)
commita283c7600e79c84404c8a9dcfcdc05a7d6d17fdb
tree2d443a3ef1e0c7cb0c69fd767c99d1c89f53eef8
parente262e0ffbe792ae2f8b47ccdafac38a36151a300
LU-17000 coverity: Fix Resource Leak(0)

This patch fixes Resource leak error reported
by coverity run.

CoverityID: 339696 ("Resource Leak"): liblustreapi_layout.c
CoverityID: 397918 ("Resource Leak"): lsnapshot.c
CoverityID: 397894 ("Resource Leak"): obd.c
CoverityID: 397851 ("Resource Leak"): lfs.c
CoverityID: 397832 ("Resource Leak"): liblusteapi.c
CoverityID: 397772 ("Resource Leak"): liblusteapi_utils.c
CoverityID: 397721 ("Resource Leak"): obd.c

Test-Parameters: trivial fstype=zfs testlist=sanity,conf-sanity,sanity-lsnapshot
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I5c0152014f987264df17fac78390a2afc12c9255
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52272
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/lfs.c
lustre/utils/liblustreapi_layout.c
lustre/utils/liblustreapi_util.c
lustre/utils/lsnapshot.c
lustre/utils/obd.c