From 2ec4a2a92c6aec292d63b6a43641d5285ae22a9d Mon Sep 17 00:00:00 2001 From: Riccardo Schirone Date: Thu, 20 Feb 2020 22:54:16 +0100 Subject: [PATCH] Fix memory leak due to not freed uri --- libr/io/io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libr/io/io.c b/libr/io/io.c index d6af0be8e8..4552a23c91 100644 --- a/libr/io/io.c +++ b/libr/io/io.c @@ -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; }