Skip to content

Commit

Permalink
[fix] Free copied environment
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Nov 18, 2013
1 parent 1347e00 commit 7dff516
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/forza.c
Expand Up @@ -144,6 +144,11 @@ void spawn() {
uv_read_start(options.stdio[1].data.stream, forza__on_alloc, forza__on_stdout_read);
uv_read_start(options.stdio[2].data.stream, forza__on_alloc, forza__on_stderr_read);
uv_read_start(options.stdio[3].data.stream, forza__on_alloc, forza__on_ipc_read);

// Switch to using `options->env` here instead of `env`, since plugins can
// override `options->env` using, for example `env_set`, like in the start
// plugin.
env_free(options.env);
}

void on_connect(int status) {
Expand Down

0 comments on commit 7dff516

Please sign in to comment.