[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 |
| Comment by Gerrit Updater [ 10/Jul/15 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14809/ |
| Comment by Peter Jones [ 10/Jul/15 ] |
|
Landed for 2.8 |