Changeset 42938
- Timestamp:
- Nov 12, 2025, 4:47:51 PM (6 months ago)
- Location:
- trunk/Ohana/src/opihi/lib.shell
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/ConfigInit.c
r38986 r42938 22 22 } 23 23 24 // this function is only called at shutdown, so it is not thread protect24 // this function is only called at shutdown, so it is not thread safe 25 25 void ConfigFree () { 26 26 if (GlobalConfig) free (GlobalConfig); 27 FreeConfigFile (); // frees the config variable structures 27 28 return; 28 29 } -
trunk/Ohana/src/opihi/lib.shell/command.c
r30614 r42938 36 36 /* solve math expresions, assign variable, if needed. any entry in line of the form {foo} 37 37 * returns value or tmp vector / buffer */ 38 line = parse (&status, line); /* line is freed here, new one allocated */ 38 line = parse (&status, line); 39 /* NOTE: line is freed here, new one allocated. This is NOT freed by the 'quit' command */ 39 40 if (!status) goto escape; 40 41 … … 42 43 *outline = line; 43 44 45 // this value is not freed by 'quit' (called as command below) 44 46 argv = parse_commands (line, &argc); 45 47 if (argc == 0) { … … 50 52 51 53 /* save the original values of argv since command may modify the array */ 54 // this value is not freed by 'quit' (called as command below) 52 55 ALLOCATE (targv, char *, argc); 53 56 for (i = 0; i < argc; i++) targv[i] = argv[i]; -
trunk/Ohana/src/opihi/lib.shell/gprint.c
r41483 r42938 93 93 94 94 pthread_mutex_unlock (&init_stream_mutex); 95 } 96 97 // call just before exiting opihi-based programs 98 void gprintFree () { 99 for (int i = 0; i < Nstreams; i++) { 100 FreeIOBuffer (streams[i][0].buffer); 101 FREE (streams[i][0].buffer); 102 FREE (streams[i][0].name); 103 FREE (streams[i]); 104 } 105 FREE (streams); 106 return; 95 107 } 96 108
Note:
See TracChangeset
for help on using the changeset viewer.
