Found by coverity, 40470 Resource leak
client->state.session_id = p_strdup(pool, state->session_id);
client->state.userdb_fields = p_strdup(pool, state->userdb_fields);
client->state.stats = p_strdup(pool, state->stats);
+ client->state.tag = i_strdup(state->tag);
client->event = event_create(NULL);
event_add_category(client->event, &event_category_imap_hibernate);
return -1;
}
} else if (strcmp(key, "tag") == 0) {
- state_r->tag = i_strdup(value);
+ state_r->tag = t_strdup_noconst(value);
} else if (strcmp(key, "multiplex_ostream") == 0) {
state_r->multiplex_ostream = TRUE;
} else if (strcmp(key, "state") == 0) {