Skip to content

Commit

Permalink
fix memory leak (OpenAtomFoundation#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
imneov authored and Leviathan1995 committed Oct 26, 2017
1 parent b1f378d commit 9e800b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pika_slot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,8 @@ int SlotsMgrtTagSlotCmd::SlotKeyPop(){
if (!s.ok()) {
LOG(WARNING) << "Zrem key: " << key_ <<" from slotKey, error: " <<strerror(errno);
}

delete iter;
return 0;
}

Expand Down

0 comments on commit 9e800b8

Please sign in to comment.