Author: Matti Picus <matti.pi...@gmail.com> Branch: release-5.x Changeset: r86832:3e411b32904e Date: 2016-09-02 08:10 +0300 http://bitbucket.org/pypy/pypy/changeset/3e411b32904e/
Log: pfff another hack on top of this pile of hacks (grafted from 76e37b5f30ae446c64388d1d7cd2d2f01999621e) diff --git a/rpython/rlib/rdynload.py b/rpython/rlib/rdynload.py --- a/rpython/rlib/rdynload.py +++ b/rpython/rlib/rdynload.py @@ -170,11 +170,15 @@ # # haaaack for 'pypy py.test -A' if libm.so is a linker script # (see reason in _dlerror_on_dlopen_untranslated()) + must_free = False if not we_are_translated() and platform.name == "linux": if name and rffi.charp2str(name) == 'libm.so': - name = rffi.str2charp('libm.so.6', track_allocation=False) + name = rffi.str2charp('libm.so.6') + must_free = True # res = c_dlopen(name, rffi.cast(rffi.INT, mode)) + if must_free: + rffi.free_charp(name) if not res: if not we_are_translated(): err = _dlerror_on_dlopen_untranslated(name) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit