Changeset 5caad1d in mainline for uspace/lib/tbarcfg/src/tbarcfg.c


Ignore:
Timestamp:
2025-06-20T18:59:58Z (38 hours ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
235bd1f, f0cc1c64
Parents:
cb20b05
Message:

tbarcfg_listener_destroy() should clean up properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/tbarcfg/src/tbarcfg.c

    rcb20b05 r5caad1d  
    671671                goto error;
    672672
     673        free(svcname);
     674        svcname = NULL;
     675
    673676        rc = loc_category_get_id(nchan, &catid, 0);
    674677        if (rc != EOK)
     
    679682                goto error;
    680683
     684        lst->portid = port;
     685        lst->srv = srv;
     686        lst->svcid = svcid;
    681687        *rlst = lst;
    682688        return EOK;
     
    699705void tbarcfg_listener_destroy(tbarcfg_listener_t *lst)
    700706{
     707        loc_service_unregister(lst->srv, lst->svcid);
     708        loc_server_unregister(lst->srv);
     709        async_port_destroy(lst->portid);
    701710        free(lst);
    702711}
Note: See TracChangeset for help on using the changeset viewer.