From e86050c93ba25895e97d3e6a68e07654a02e5110 Mon Sep 17 00:00:00 2001 From: Timo Dritschler Date: Wed, 26 Nov 2014 18:51:28 +0100 Subject: Changed a missed occurance of malloc to g_try_malloc --- src/kiro-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kiro-client.c') 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!"); -- cgit v1.2.3