Change-Id: Ic657c08e495eeeac2091d5a24854dfc95f1b6a8d
%bcond_without use_glib_event_loop
Name: capi-network-vine
Summary: An service discovery framework
-Version: 1.2.6
+Version: 1.2.7
Release: 0
Group: Network & Connectivity/API
License: Apache-2.0
{
VINE_LOGD("Run Vine event loop");
- struct epoll_event events[MAX_VINE_FDS];
+ struct epoll_event *events
+ = (struct epoll_event *)calloc(MAX_VINE_FDS, sizeof(struct epoll_event));
+ if (events == NULL) {
+ VINE_LOGE("calloc() fails.");
+ return NULL;
+ }
+
int timeout = -1;
do {
}
} while (!__cleanup);
+ free(events);
+
// TODO:
// Even although __cleanup is set as false,
// this loop cannot be broken if waiting epoll_wait()