Changeset 7813:0b1f3835bcf9


Ignore:
Timestamp:
12/20/07 01:51:29 (6 years ago)
Author:
mabshoff@…
Branch:
default
Message:

Fixx mismatched free issue in wrap.cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/libs/mwrank/wrap.cc

    r7544 r7813  
    2424char* stringstream_to_char(ostringstream& instore) { 
    2525  int n = strlen(instore.str().data()); 
    26   char* buf = new char[n+1]; 
     26  char* buf = (char*)malloc(n+1); 
    2727  strcpy(buf, instore.str().data()); 
    2828  return buf; 
Note: See TracChangeset for help on using the changeset viewer.