Browse Source

Avoid free the cwd with getcwd()

pull/880/merge
Max Lv 8 years ago
parent
commit
dc39af8195
1 changed files with 2 additions and 0 deletions
  1. 2
      src/plugin.c

2
src/plugin.c

@ -111,7 +111,9 @@ start_plugin(const char *plugin,
size_t path_len = strlen(path) + strlen(cwd) + 2;
new_path = ss_malloc(path_len);
snprintf(new_path, path_len, "%s:%s", cwd, path);
#ifdef __GLIBC__
free(cwd);
#endif
}
}

Loading…
Cancel
Save