Skip to content

Commit

Permalink
Revert "MDL-32379: Fix memory leak in session_set_user"
Browse files Browse the repository at this point in the history
This reverts commit 22dc320.

This integrator didn't properly read the diff, sorry
  • Loading branch information
danpoltawski committed May 7, 2012
1 parent e71b8cc commit 9d3f3b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sessionlib.php
Expand Up @@ -1067,7 +1067,7 @@ function get_moodle_cookie() {
* @return void
*/
function session_set_user($user) {
$_SESSION['USER'] = clone $user;
$_SESSION['USER'] = $user;
unset($_SESSION['USER']->description); // conserve memory
sesskey(); // init session key
}
Expand Down

0 comments on commit 9d3f3b5

Please sign in to comment.