aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gef.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/gef.py b/gef.py
index 7bc66c3..0c0ea16 100644
--- a/gef.py
+++ b/gef.py
@@ -9190,7 +9190,12 @@ class HeapAnalysisCommand(GenericCommand):
ok("{} - Cleaning up".format(Color.colorify("Heap-Analysis", "yellow bold"),))
for bp in [self.bp_malloc, self.bp_calloc, self.bp_free, self.bp_realloc]:
if hasattr(bp, "retbp") and bp.retbp:
- bp.retbp.delete()
+ try:
+ bp.retbp.delete()
+ except RuntimeError:
+ # in some cases, gdb was found failing to correctly remove the retbp but they can be safely ignored since the debugging session is over
+ pass
+
bp.delete()
for wp in __heap_uaf_watchpoints__: