Skip to content

Commit

Permalink
Merge pull request #8326 from Fonger/patch-5
Browse files Browse the repository at this point in the history
fix(model): delete $versionError after saving to prevent memory leak
  • Loading branch information
vkarpov15 committed Nov 13, 2019
2 parents 91ea10e + de583bb commit c900645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model.js
Expand Up @@ -465,7 +465,7 @@ Model.prototype.save = function(options, fn) {
this.$__save(options, error => {
this.$__.saving = undefined;
delete this.$__.saveOptions;
delete this.$__.versionError;
delete this.$__.$versionError;

if (error) {
this.$__handleReject(error);
Expand Down

0 comments on commit c900645

Please sign in to comment.