From: Carsten Haitzler (Rasterman) Date: Mon, 24 Jul 2017 08:35:13 +0000 (+0900) Subject: ecore con proxy helper - complain when realloc fails X-Git-Tag: upstream/1.20.0~133 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=143709faba6c508a5d15c7d593bd67a18be3d446;p=platform%2Fupstream%2Fefl.git ecore con proxy helper - complain when realloc fails so you know why things might be failing... complain about out of memory errors. --- diff --git a/src/lib/ecore_con/ecore_con_proxy_helper.c b/src/lib/ecore_con/ecore_con_proxy_helper.c index 82650e8..43feead 100644 --- a/src/lib/ecore_con/ecore_con_proxy_helper.c +++ b/src/lib/ecore_con/ecore_con_proxy_helper.c @@ -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);