void free_privdata(void *privdata) {
    struct privdata *data = privdata;
    data->dtor_counter++;
}
void free_privdata(void *privdata) {
    struct privdata *data = privdata;
    data->dtor_counter++;
}