summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2014-11-26 18:51:28 +0100
committerTimo Dritschler <timo.dritschler@kit.edu>2014-11-26 18:52:22 +0100
commite86050c93ba25895e97d3e6a68e07654a02e5110 (patch)
treefea3d2c02f2a1c8e208b8880d667c9d5a4e98897 /src
parent8df0836960547bbbf8e75a87efc45cd31d9f65c4 (diff)
downloadkiro-e86050c93ba25895e97d3e6a68e07654a02e5110.tar.gz
kiro-e86050c93ba25895e97d3e6a68e07654a02e5110.tar.bz2
kiro-e86050c93ba25895e97d3e6a68e07654a02e5110.tar.xz
kiro-e86050c93ba25895e97d3e6a68e07654a02e5110.zip
Changed a missed occurance of malloc to g_try_malloc
Diffstat (limited to 'src')
-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!");