Changeset 49 for trunk/src/fortran


Ignore:
Timestamp:
Aug 23, 2005, 12:45:05 PM (19 years ago)
Author:
dkearney
Message:

changed all functions with PyString_AsString calls to copy the contents
of the returned python object to newly allocated memory and return the
newly allocated memory. this leaves it up to the user to free all of
the returned items, while the interface function is still responsible
for taking care of python's memory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/fortran/rappture_fortran.c

    r47 r49  
    514514                        }
    515515                        *(retText+length_out-1) = ' ';
    516 
     516                       
     517                        free(retObj);
     518                        retObj = NULL;
    517519                    }
    518520                    else {
Note: See TracChangeset for help on using the changeset viewer.