summaryrefslogtreecommitdiffstats
path: root/src/kiro-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kiro-client.c')
-rw-r--r--src/kiro-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kiro-client.c b/src/kiro-client.c
index 57dbea2..714a003 100644
--- a/src/kiro-client.c
+++ b/src/kiro-client.c
@@ -126,7 +126,7 @@ process_cm_event (GIOChannel *source, GIOCondition condition, gpointer data)
if (0 <= rdma_get_cm_event (priv->ec, &active_event)) {
//Disable cancellation to prevent undefined states during shutdown
- struct rdma_cm_event *ev = malloc (sizeof (*active_event));
+ struct rdma_cm_event *ev = g_try_malloc (sizeof (*active_event));
if (!ev) {
g_critical ("Unable to allocate memory for Event handling!");