MCPcopy Create free account
hub / github.com/USBGuard/usbguard / destroyExecutableEnvironment

Method destroyExecutableEnvironment

src/CLI/IPCSignalWatcher.cpp:301–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299 }
300
301 void IPCSignalWatcher::destroyExecutableEnvironment(char** const envp)
302 {
303 if (envp != nullptr) {
304 char** envp_current = envp;
305
306 while (envp_current[0] != nullptr) {
307 delete [] envp_current[0];
308 ++envp_current;
309 }
310
311 delete [] envp;
312 }
313 }
314
315 char* IPCSignalWatcher::cstrCopy(const char* c_str)
316 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected