View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000375 | OpenFOAM | Bug | public | 2011-12-26 15:00 | 2012-01-03 11:21 |
Reporter | Assigned To | ||||
Priority | normal | Severity | minor | Reproducibility | sometimes |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | Ubuntu | OS Version | 10.04 |
Summary | 0000375: bad use of tmp in fixedShearStressFvPatchVectorField.C | ||||
Description | there seems to be a bug at line 121 of fixedShearStressFvPatchVectorField.C tmp<scalarField> nuEffw = rasModel.nuEff()().boundaryField()[patchI]; should be changed to scalarField nuEffw = rasModel.nuEff()().boundaryField()[patchI]; nuEff() is a tmp created by new operation, after this line of code, the nuEff() object should be deleted automatically. If you use a reference of a part of this object, it will use a memory that has been released, which cause a memory leakage. Am I right? | ||||
Tags | No tags attached. | ||||