ecore con proxy helper - complain when realloc fails

so you know why things might be failing... complain about out of
memory errors.
This commit is contained in:
Carsten Haitzler 2017-07-24 17:35:13 +09:00
parent fe6dc2000d
commit 143709faba
1 changed files with 6 additions and 0 deletions

View File

@ -177,6 +177,11 @@ _efl_net_proxy_helper_proxy_add(int id, const char *url)
proxies[n - 1] = strdup(url);
proxies[n] = NULL;
}
else
{
ERR("Out of memory allocating proxies in helper");
goto err;
}
}
else
{
@ -190,6 +195,7 @@ _efl_net_proxy_helper_proxy_add(int id, const char *url)
eina_thread_queue_send_done(req->thq, ref);
}
}
err:
locks--;
}
eina_spinlock_release(&_efl_net_proxy_helper_queue_lock);