Browse Source

- Fixed leak on error in popen/exec (and related functions)

experimental/5.3-FPM
Pierre Joye 17 years ago
parent
commit
ceb607af13
  1. 2
      NEWS
  2. 1
      TSRM/tsrm_win32.c

2
NEWS

@ -16,6 +16,8 @@ PHP NEWS
- Improved shared extension loading on OSX to use the standard Unix dlopen()
API. (Scott)
- Fixed leak on error in popen/exec (and related functions) on Windows.
(Pierre)
- Fixed possible bad caching of symlinked directories in the realpath cache
on Windows. (Pierre)
- Fixed atime and mtime in stat related functions on Windows. (Pierre)

1
TSRM/tsrm_win32.c

@ -371,6 +371,7 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd,
sprintf(cmd, "%s /c \"%s\"", TWG(comspec), command);
if (!CreateProcess(NULL, cmd, &security, &security, security.bInheritHandle, dwCreateFlags, env, cwd, &startup, &process)) {
free(cmd);
return NULL;
}
free(cmd);

Loading…
Cancel
Save