Fix 1134819 Resource leak

This commit is contained in:
murphy 2021-03-31 12:29:06 +02:00 committed by pancake
parent 979edb8313
commit 9e1f30f127

View File

@ -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;