summaryrefslogtreecommitdiffstats
path: root/src/kiro-client.c
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2014-11-26 18:34:30 +0100
committerTimo Dritschler <timo.dritschler@kit.edu>2014-11-26 18:34:30 +0100
commitfcec7a701ef599c432f29f13ce82bfdb464d7ee7 (patch)
tree9fa90d66d713e283dc84fe15b4ced94636bb20a0 /src/kiro-client.c
parent8d6149084c6c66dc0514021264128bb2a2458930 (diff)
downloadkiro-fcec7a701ef599c432f29f13ce82bfdb464d7ee7.tar.gz
kiro-fcec7a701ef599c432f29f13ce82bfdb464d7ee7.tar.bz2
kiro-fcec7a701ef599c432f29f13ce82bfdb464d7ee7.tar.xz
kiro-fcec7a701ef599c432f29f13ce82bfdb464d7ee7.zip
Replaced all calls to malloc, calloc and free by their respective glib versions
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 b561b7a..818c0c3 100644
--- a/src/kiro-client.c
+++ b/src/kiro-client.c
@@ -150,7 +150,7 @@ kiro_client_connect (KiroClient *self, const char *address, const char *port)
}
g_debug ("Route to server resolved");
- struct kiro_connection_context *ctx = (struct kiro_connection_context *)calloc (1, sizeof (struct kiro_connection_context));
+ struct kiro_connection_context *ctx = (struct kiro_connection_context *)g_try_malloc (sizeof (struct kiro_connection_context));
if (!ctx) {
g_critical ("Failed to create connection context (Out of memory?)");