[LU-10890] Fix possible memory leak in liblustreapi Created: 09/Apr/18  Updated: 16/Apr/18  Resolved: 16/Apr/18

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.12.0, Lustre 2.10.3
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Thomas Stibor Assignee: Thomas Stibor
Resolution: Duplicate Votes: 0
Labels: patch
Environment:

Debian 9


Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Fix possible memory leak in llapi_dir_create

namepath = strdup(name);
 if (!namepath) {
- free(namepath);
+ free(dirpath);
 free(lmu);
 return -ENOMEM;
 }


 Comments   
Comment by Gerrit Updater [ 09/Apr/18 ]

Thomas Stibor (t.stibor@gsi.de) uploaded a new patch: https://review.whamcloud.com/31913
Subject: LU-10890 liblustre: Fix possible memory leak
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d2322e1001ce89836b3ffba134b80e85f2b176f6

Comment by Thomas Stibor [ 16/Apr/18 ]

This is already fixed in https://jira.hpdd.intel.com/browse/LU-10766 and landed in 2.12

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