| commit | 4572877d0dd0b5060f4498e705467eaef51c6459 | [log] [tgz] |
|---|---|---|
| author | Petr Machata <pmachata@redhat.com> | Sun Apr 15 04:23:55 2012 +0200 |
| committer | Petr Machata <pmachata@redhat.com> | Thu Apr 19 01:38:05 2012 +0200 |
| tree | 76390a1035c26cb7b3f9341f4a7a80b43f51962c | |
| parent | 218c5ff26841f5bbd188c42ccbd67422a7a20556 [diff] [blame] |
Proper clean-up in insert_breakpoint
diff --git a/breakpoints.c b/breakpoints.c index 8668e77..8aeba58 100644 --- a/breakpoints.c +++ b/breakpoints.c
@@ -218,8 +218,10 @@ } } - if (breakpoint_turn_on(sbp, proc) < 0) + if (breakpoint_turn_on(sbp, proc) < 0) { + proc_remove_breakpoint(leader, sbp); goto fail; + } return sbp; }