mirror of
https://github.com/rkujawa/rk65c02.git
synced 2024-12-13 01:29:57 +00:00
Report failure when malloc errors.
This commit is contained in:
parent
3363959b87
commit
ea5c09d7c0
@ -29,6 +29,9 @@ debug_breakpoint_add(rk65c02emu_t *e, uint16_t address)
|
||||
breakpoint_t *bp;
|
||||
|
||||
bp = (breakpoint_t *) malloc(sizeof(breakpoint_t));
|
||||
if (bp == NULL)
|
||||
return false;
|
||||
|
||||
bp->address = address;
|
||||
|
||||
LL_APPEND((e->bps_head), bp);
|
||||
|
Loading…
Reference in New Issue
Block a user