Re: [Boost-bugs] [Boost C++ Libraries] #4657: Boost.MPI Compile failure with Python 3

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4657: Boost.MPI Compile failure with Python 3
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-02-05 10:54:15


#4657: Boost.MPI Compile failure with Python 3
-------------------------------+--------------------------------------------
  Reporter: smr@… | Owner: troyer
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: mpi
   Version: Boost 1.44.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment (by anonymous):

 The attached patch (as well as r76290) seems to introduce memory leak in
 argv conversion code. When you return false from the loop in `bool
 mpi_init(list python_argv, bool abort_on_exception)`, memory allocated for
 argv_copy and argv_copy2 is not freed.

 Also, the following code returns 1 in case of error, which is converted to
 true (because function is returning boolean):

 {{{#!c++
 if (myresult != std::codecvt<wchar_t,char,mbstate_t>::ok )
 {
     fprintf(stderr, "failure translating argv\n");
     return 1;
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4657#comment:12>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC