diff --git a/librz/analysis/p/analysis_avr.c b/librz/analysis/p/analysis_avr.c index 91134e338ff..4cd6cc277be 100644 --- a/librz/analysis/p/analysis_avr.c +++ b/librz/analysis/p/analysis_avr.c @@ -379,6 +379,7 @@ static ut8 *analysis_mask_avr(RzAnalysis *analysis, int size, const ut8 *data, u rz_strbuf_fini(&sb); if (opsize < 2 || !(ret = malloc(opsize))) { + free(ret); rz_analysis_op_free(op); return NULL; }