Changeset 476
- Timestamp:
- Jul 10, 2006, 1:07:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/RpLibrary.cc
r444 r476 322 322 int index = 0; 323 323 int listLen = (path.length()/2)+1; 324 std::string* list[listLen];324 std::string** list; 325 325 int path_size = 0; 326 326 int listIdx = 0; … … 340 340 return tmpElement; 341 341 } 342 343 list = (std::string **) calloc(listLen, sizeof( std::string * ) ); 342 344 343 345 if (!list) { … … 466 468 } 467 469 468 // should we really be freeing list since its on the stack as a fxn variable? 469 // free(list); 470 // list = NULL; 470 free(list); 471 list = NULL; 471 472 } 472 473
Note: See TracChangeset
for help on using the changeset viewer.