[cctbxbb] bug fix in cctbx_project/scitbx/lbfgs.h

Oleg Sobolev osobolev at lbl.gov
Tue Apr 11 11:47:27 PDT 2017


Hi Pavel, Rob,

I'd like to reiterate concern about freeing memory after allocating it with
"new". Didn't find anything in this regard. More than 1 occasion in lbfgs.h
file. Are we sure memory leak is not happening?

Best regards,
Oleg Sobolev.

On Tue, Apr 11, 2017 at 11:18 AM, R.D. Oeffner <rdo20 at cam.ac.uk> wrote:

> There is now a fatal warning in libtbx/SConscript if gcc encounters
> variable length arrays as this is not portable code and we've had broken
> builds on more than one occasion due to this recently.
>
> Rob
>
>
>
> On 11/04/2017 12:01, Pavel Afonine wrote:
>
> Hi Rob,
>
> thanks for the fix. This is was Min's code (remember her from the past workshop?). I simply applied her patch without looking into it too much, and made sure all t96 pass.
>
> Again, thanks for fixing it.
>
> Pavel
>
> On 4/11/17 03:48, R.D. Oeffner wrote:
>
> Hi Pavel, I have made a change to that file as it didn't compile on
> Windows. In fact I can't understand how it would compile with other
> compilers before as the syntax to me seemed illegal given that n is not
> known at compile time. I'm not sure how a dynamically created FloatType
> should be destroyed as I couldn't find any examples of that being done
> throughout this file. Rob
>
>
>
> _______________________________________________
> cctbxbb mailing list
> cctbxbb at phenix-online.org
> http://phenix-online.org/mailman/listinfo/cctbxbb
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phenix-online.org/pipermail/cctbxbb/attachments/20170411/8f96aba6/attachment.htm>


More information about the cctbxbb mailing list