Permalink
Browse files

Revert "MDL-32379: Fix memory leak in session_set_user"

This reverts commit 22dc320.

This integrator didn't properly read the diff, sorry
  • Loading branch information...
1 parent e71b8cc commit 9d3f3b50933d3c776225e8a3e0a07235236058e0 @danpoltawski danpoltawski committed May 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sessionlib.php
View
@@ -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
}

0 comments on commit 9d3f3b5

Please sign in to comment.