mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-13 07:57:35 +00:00
Fix 1134819 Resource leak
This commit is contained in:
parent
979edb8313
commit
9e1f30f127
@ -797,6 +797,7 @@ R_API void r_core_rtr_add(RCore *core, const char *_input) {
|
||||
char *str = r_socket_http_get (uri, NULL, &len);
|
||||
if (!str) {
|
||||
eprintf ("Cannot find peer\n");
|
||||
r_socket_free (fd);
|
||||
return;
|
||||
}
|
||||
core->num->value = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user