mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
journal-rate-limit: make journal_ratelimit_group_free() return NULL
To make it follow our recent coding style.
This commit is contained in:
@@ -72,8 +72,9 @@ JournalRateLimit *journal_ratelimit_new(void) {
|
||||
return r;
|
||||
}
|
||||
|
||||
static void journal_ratelimit_group_free(JournalRateLimitGroup *g) {
|
||||
assert(g);
|
||||
static JournalRateLimitGroup* journal_ratelimit_group_free(JournalRateLimitGroup *g) {
|
||||
if (!g)
|
||||
return NULL;
|
||||
|
||||
if (g->parent) {
|
||||
assert(g->parent->n_groups > 0);
|
||||
@@ -88,7 +89,7 @@ static void journal_ratelimit_group_free(JournalRateLimitGroup *g) {
|
||||
}
|
||||
|
||||
free(g->id);
|
||||
free(g);
|
||||
return mfree(g);
|
||||
}
|
||||
|
||||
void journal_ratelimit_free(JournalRateLimit *r) {
|
||||
|
||||
Reference in New Issue
Block a user