Skip to content

Commit

Permalink
fixed memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
moazam1 committed Apr 10, 2019
1 parent 8b659df commit 0d381cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Commands/ReindexCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ function migrate($original_index, $new_index, $scroll_id = null, $errors = 0, $p

$errors++;
}

unset($response);
gc_collect_cycles();
$this->output->progressAdvance();

} else {
Expand Down

0 comments on commit 0d381cc

Please sign in to comment.