Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix: fix memory leak in CoreAV and missuse of std::uniqe_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
sudden6 committed Oct 25, 2018
1 parent 7fa2dfe commit d776e6c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/persistence/profilelocker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ void ProfileLocker::unlock()
return;

lockfile->unlock();
delete lockfile.release();
lockfile = nullptr;
lockfile.reset();
curLockName.clear();
}

Expand Down

0 comments on commit d776e6c

Please sign in to comment.