[IOMultiplexerV2] coding style fixes
[NextIRCd.git] / src / IOHandler / IOGarbageCollector.c
index d62439685ce29f90de01b847b1ea2512214bc9dc..cf25700c285064ea2ad15400d045e1576f530e8f 100644 (file)
@@ -61,14 +61,14 @@ void iogc_add_callback(void *object, iogc_free *free_callback) {
                return;
        }
        struct IOGCObject *obj = malloc(sizeof(*obj));
-    if(!obj) {
-        iolog_trigger(IOLOG_ERROR, "could not allocate memory for IOGCObject in %s:%d", __FILE__, __LINE__);
+       if(!obj) {
+               iolog_trigger(IOLOG_ERROR, "could not allocate memory for IOGCObject in %s:%d", __FILE__, __LINE__);
                if(free_callback)
                        free_callback(object);
                else
                        free(object);
-        return;
-    }
+               return;
+       }
        obj->object = object;
        obj->free_callback = free_callback;
        gettimeofday(&obj->timeout, NULL);