Database connections should be closed
This commit is contained in:
parent
eb7cbb9ada
commit
33b61ab262
3 changed files with 3 additions and 0 deletions
|
@ -182,6 +182,7 @@ function load_hooks() {
|
||||||
}
|
}
|
||||||
$a->hooks[$rr['hook']][] = array($rr['file'],$rr['function']);
|
$a->hooks[$rr['hook']][] = array($rr['file'],$rr['function']);
|
||||||
}
|
}
|
||||||
|
dba::close($r);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -57,6 +57,7 @@ class Config {
|
||||||
self::$in_db[$family][$k] = true;
|
self::$in_db[$family][$k] = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
dba::close($r);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -43,6 +43,7 @@ class PConfig {
|
||||||
$a->config[$uid][$family][$k] = $rr['v'];
|
$a->config[$uid][$family][$k] = $rr['v'];
|
||||||
self::$in_db[$uid][$family][$k] = true;
|
self::$in_db[$uid][$family][$k] = true;
|
||||||
}
|
}
|
||||||
|
dba::close($r);
|
||||||
} else if ($family != 'config') {
|
} else if ($family != 'config') {
|
||||||
// Negative caching
|
// Negative caching
|
||||||
$a->config[$uid][$family] = "!<unset>!";
|
$a->config[$uid][$family] = "!<unset>!";
|
||||||
|
|
Loading…
Reference in a new issue