mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 21:29:49 +00:00
Fix last coverities (2 memleaks)
This commit is contained in:
parent
874369c224
commit
7e083b57fb
@ -72,6 +72,7 @@ static RList *entries(RBinFile *bf) {
|
||||
}
|
||||
if (!addr) {
|
||||
r_list_free (ret);
|
||||
r_list_free (codes);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user