mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-22 05:37:06 +00:00
Fix two coverities
This commit is contained in:
parent
ba8a2983e1
commit
6ea8a866f6
@ -145,6 +145,7 @@ static int parse(RParse *p, const char *data, char *str) {
|
||||
if (ptr && *ptr == '{') { ptr = strchr (ptr+1, '}'); }
|
||||
if (!ptr) {
|
||||
eprintf ("Unbalanced bracket\n");
|
||||
free(buf);
|
||||
return R_FALSE;
|
||||
}
|
||||
ptr = strchr (ptr, ',');
|
||||
|
@ -156,6 +156,7 @@ R_API int r_diff_buffers_radiff(RDiff *d, const ut8 *a, int la, const ut8 *b, in
|
||||
.b_off = oob, .b_buf = bt, .b_len = btl
|
||||
};
|
||||
ret = d->callback(d, d->user, &o);
|
||||
if (!ret)
|
||||
break;
|
||||
atl = btl = 0;
|
||||
hit = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user