Fix memory leak due to not freed uri

This commit is contained in:
Riccardo Schirone 2020-02-20 22:54:16 +01:00 committed by radare
parent 05ee096280
commit 2ec4a2a92c

View File

@ -131,6 +131,7 @@ R_API RIODesc *r_io_open_buffer(RIO *io, RBuffer *b, int perm, int mode) {
const ut8 *tmp = r_buf_data (b, &bufSize);
r_io_desc_write (desc, tmp, bufSize);
}
free (uri);
return desc;
}