[LU-7666] llog_cat_new_log() should use chunk size when freeing header Created: 14/Jan/16 Updated: 27/Jan/16 Resolved: 27/Jan/16 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.8.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | John Hammond | Assignee: | John Hammond |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | llog | ||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||
| Description |
|
In llog_cat_new_log() we create a spurious memory leak warning when we use OBD_FREE_PTR(loghandle->lgh_hdr) rather than OBD_FREE(..., loghandle->lgh_ctxt->loc_chunk_size). From leak_finder.pl: *** Free different size (32768 alloced, 8192 freed).
malloc at llog.c:llog_init_handle:345, free at llog_cat.c:llog_cat_new_log:104
|
| Comments |
| Comment by Joseph Gmitter (Inactive) [ 14/Jan/16 ] |
|
Assigning to John as he is planning to push the patch. |
| Comment by Gerrit Updater [ 14/Jan/16 ] |
|
John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/18009 |
| Comment by Andreas Dilger [ 18/Jan/16 ] |
|
This problem was introduced in http://review.whamcloud.com/14883 " |
| Comment by Gerrit Updater [ 26/Jan/16 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/18009/ |
| Comment by Joseph Gmitter (Inactive) [ 27/Jan/16 ] |
|
Landed for 2.8.0 |