summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-24 17:35:13 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-24 17:35:13 +0900
commit143709faba6c508a5d15c7d593bd67a18be3d446 (patch)
treef02d4a9982235a082d8571a0ee3f260a04c6325a /src/lib/ecore_con
parentfe6dc2000d432f5bc9cdaf42bcd67e0dd6ba6393 (diff)
ecore con proxy helper - complain when realloc fails
so you know why things might be failing... complain about out of memory errors.
Diffstat (limited to 'src/lib/ecore_con')
-rw-r--r--src/lib/ecore_con/ecore_con_proxy_helper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ecore_con/ecore_con_proxy_helper.c b/src/lib/ecore_con/ecore_con_proxy_helper.c
index 82650e8833..43feead87e 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)
177 proxies[n - 1] = strdup(url); 177 proxies[n - 1] = strdup(url);
178 proxies[n] = NULL; 178 proxies[n] = NULL;
179 } 179 }
180 else
181 {
182 ERR("Out of memory allocating proxies in helper");
183 goto err;
184 }
180 } 185 }
181 else 186 else
182 { 187 {
@@ -190,6 +195,7 @@ _efl_net_proxy_helper_proxy_add(int id, const char *url)
190 eina_thread_queue_send_done(req->thq, ref); 195 eina_thread_queue_send_done(req->thq, ref);
191 } 196 }
192 } 197 }
198err:
193 locks--; 199 locks--;
194 } 200 }
195 eina_spinlock_release(&_efl_net_proxy_helper_queue_lock); 201 eina_spinlock_release(&_efl_net_proxy_helper_queue_lock);