Changeset 81bd7e3
- Timestamp:
- Apr 18, 2023, 2:09:52 PM (19 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- a5ea261
- Parents:
- 66b6f66
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
driver/cfa.cc
r66b6f66 r81bd7e3 44 44 static int flags = 0; 45 45 46 // This allocation 'leaks' memory from the program to the execution 47 // environment, as putenv does not manage the storage of the string used 48 // as an environment variable. This leak is necessary to ensure the 49 // underlying C string is allocated long enough. 46 50 if ( putenv( (char *)( *new string( string( __CFA_FLAGPREFIX__ + to_string( flags++ ) + "__=" ) + arg ) ).c_str() ) ) { 47 51 cerr << argv[0] << " error, cannot set environment variable." << endl;
Note: See TracChangeset
for help on using the changeset viewer.