Tracking bug for static code analysis fixes. (LU-2753)

[LU-4044] Fix 'resource leak' errors Created: 02/Oct/13  Updated: 01/Dec/14  Resolved: 19/Nov/13

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.5.0
Fix Version/s: Lustre 2.6.0, Lustre 2.5.4

Type: Technical task Priority: Minor
Reporter: Sebastien Buisson (Inactive) Assignee: Dmitry Eremin (Inactive)
Resolution: Fixed Votes: 0
Labels: build, coverity, patch

Rank (Obsolete): 10855

 Description   

Thanks to the Coverity tool, we found some resource leak errors in the Lustre code. This is typically what happens when a function forgets to free some allocated memory or close some file descriptor while returning in case of error.

I will propose a patch to address the issues.



 Comments   
Comment by Sebastien Buisson (Inactive) [ 02/Oct/13 ]

The patch is at:
http://review.whamcloud.com/7820

Thanks,
Sebastien.

Comment by Peter Jones [ 02/Oct/13 ]

Dmitry

Could you please take care of this patch?

Thanks

Peter

Comment by Peter Jones [ 19/Nov/13 ]

Landed for 2.6

Comment by Jian Yu [ 25/Oct/14 ]

Here is the back-ported patch for Lustre b2_5 branch: http://review.whamcloud.com/12394

Comment by Gerrit Updater [ 01/Dec/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12394/
Subject: LU-4044 build: fix 'resource leak' errors
Project: fs/lustre-release
Branch: b2_5
Current Patch Set:
Commit: a4a4088181751c0de9141b0a315f8b6d57e0be90

Generated at Sat Feb 10 01:39:10 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.