mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-18 10:59:45 +00:00
Introduce mg_calloc
This commit is contained in:
1 parent
5f1f4a0df8
commit
074ef5197b
26 files changed
+259
-313
No files matched your search
+1
-1
@@ -38,7 +38,7 @@ void mg_timer_poll(struct mg_timer **head, uint64_t now_ms) {
|
||||
// If this timer is not repeating and marked AUTODELETE, remove it
|
||||
if (!(t->flags & MG_TIMER_REPEAT) && (t->flags & MG_TIMER_AUTODELETE)) {
|
||||
mg_timer_free(head, t);
|
||||
free(t);
|
||||
mg_free(t);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user