summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-09-05 21:18:00 +0000
committerZeev Suraski <zeev@php.net>2000-09-05 21:18:00 +0000
commit12adebbc3a2972a7cbbf9662fd69edb9c854a8f6 (patch)
tree1221d9297b7dde6f8db36fd52e5d6601a9984f93 /ext
parent4647bbb71a29319869c151d29bb5c271cd794082 (diff)
downloadphp-git-12adebbc3a2972a7cbbf9662fd69edb9c854a8f6.tar.gz
- Fix leak
- Remove redundant php_ini code
Diffstat (limited to 'ext')
-rw-r--r--ext/session/session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/session/session.c b/ext/session/session.c
index 455fd11296..2c9b5cc5a6 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -108,12 +108,12 @@ static PHP_INI_MH(OnUpdateStringCopy)
p = (char **) (base+(size_t) mh_arg1);
- if(*p && stage != PHP_INI_STAGE_STARTUP) {
+ if (*p && entry->modified) {
STR_FREE(*p);
}
- if(stage != PHP_INI_STAGE_DEACTIVATE) {
- *p = estrdup(new_value);
+ if (stage != PHP_INI_STAGE_DEACTIVATE) {
+ *p = estrdup(new_value);
}
return SUCCESS;
}