Fix two coverities

This commit is contained in:
jvoisin 2015-06-12 23:19:14 +02:00
parent ba8a2983e1
commit 6ea8a866f6
2 changed files with 2 additions and 0 deletions

View File

@ -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, ',');

View File

@ -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;