ecore con proxy helper - complain when realloc fails
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 24 Jul 2017 08:35:13 +0000 (17:35 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 24 Jul 2017 08:35:13 +0000 (17:35 +0900)
so you know why things might be failing... complain about out of
memory errors.

src/lib/ecore_con/ecore_con_proxy_helper.c

index 82650e8..43feead 100644 (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);