mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-30 05:11:14 +00:00
Avoid free the cwd with getcwd()
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user