[LU-6543] memory leak in lfs_setstripe, lustre/utils/lfs.c Created: 29/Apr/15  Updated: 10/Jul/15  Resolved: 10/Jul/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.7.0
Fix Version/s: Lustre 2.8.0

Type: Bug Priority: Minor
Reporter: Colin Ian King Assignee: Dmitry Eremin (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

Ubuntu 15.04


Severity: 1
Rank (Obsolete): 9223372036854775807

 Description   

lfs_setstripe() returns on an error return without free'ing param

if (st_count > 0 && nr_osts != st_count)

{ fprintf(stderr, "error: %s: stripe count '%d' doesn't " "match the number of OSTs: %d\n", argv[0], st_count, nr_osts); return CMD_HELP; }

should be:

if (st_count > 0 && nr_osts != st_count)

{ fprintf(stderr, "error: %s: stripe count '%d' doesn't " "match the number of OSTs: %d\n", argv[0], st_count, nr_osts); free(param); return CMD_HELP; }

 Comments   
Comment by Gerrit Updater [ 14/May/15 ]

Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: http://review.whamcloud.com/14809
Subject: LU-6543 utils: fix memory leak in lfs_setstripe
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 15f11bb534678cc107d030382511a9dd2d56cfbf

Comment by Gerrit Updater [ 10/Jul/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14809/
Subject: LU-6543 utils: fix memory leak in lfs_setstripe
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 66491b730aa759d1e061804d6d22f344b33b4589

Comment by Peter Jones [ 10/Jul/15 ]

Landed for 2.8

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