projects
/
NextIRCd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[IOMultiplexerV2] coding style fixes
[NextIRCd.git]
/
src
/
IOHandler
/
IOGarbageCollector.c
diff --git
a/src/IOHandler/IOGarbageCollector.c
b/src/IOHandler/IOGarbageCollector.c
index d62439685ce29f90de01b847b1ea2512214bc9dc..cf25700c285064ea2ad15400d045e1576f530e8f 100644
(file)
--- a/
src/IOHandler/IOGarbageCollector.c
+++ b/
src/IOHandler/IOGarbageCollector.c
@@
-61,14
+61,14
@@
void iogc_add_callback(void *object, iogc_free *free_callback) {
return;
}
struct IOGCObject *obj = malloc(sizeof(*obj));
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);
if(free_callback)
free_callback(object);
else
free(object);
- return;
- }
+
return;
+
}
obj->object = object;
obj->free_callback = free_callback;
gettimeofday(&obj->timeout, NULL);
obj->object = object;
obj->free_callback = free_callback;
gettimeofday(&obj->timeout, NULL);