Skip to content

Commit

Permalink
table.py: Call `__delitem__ when deleting an item :)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmg committed Apr 30, 2016
1 parent 392f5ed commit 06b5ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/bcc/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def __init__(self, *args, **kwargs):
super(PerfEventArray, self).__init__(*args, **kwargs)

def __delitem__(self, key):
super(PerfEventArray, self).__init__(key)
super(PerfEventArray, self).__delitem__(key)
self.close_perf_buffer(key)

def open_perf_buffer(self, callback):
Expand Down

0 comments on commit 06b5ce5

Please sign in to comment.