Fix last coverities (2 memleaks)

This commit is contained in:
pancake 2018-08-17 17:38:24 +02:00
parent 874369c224
commit 7e083b57fb
2 changed files with 3 additions and 1 deletions

View File

@ -72,6 +72,7 @@ static RList *entries(RBinFile *bf) {
}
if (!addr) {
r_list_free (ret);
r_list_free (codes);
return NULL;
}
}

View File

@ -1,4 +1,4 @@
/* radare - Copyright 2009-2017 - pancake, nibble */
/* radare - Copyright 2009-2018 - pancake, nibble */
#include "r_core.h"
#include "r_socket.h"
@ -508,6 +508,7 @@ static int r_core_rtr_http_run(RCore *core, int launch, int browse, const char *
newblk = malloc (core->blocksize);
if (!newblk) {
r_socket_free (s);
return 1;
}
memcpy (newblk, core->block, core->blocksize);