Changeset 6c440362 in mainline


Ignore:
Timestamp:
2018-06-18T14:22:05Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
75c430e3
Parents:
099c834
git-author:
Jiri Svoboda <jiri@…> (2018-06-16 22:49:43)
git-committer:
Jiri Svoboda <jiri@…> (2018-06-18 14:22:05)
Message:

Free exit handler structure after running exit handler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/stdlib.c

    r099c834 r6c440362  
    9898                eh = list_get_instance(link, __exit_handler_t, llist);
    9999                eh->func();
     100                free(eh);
    100101                fibril_mutex_lock(&exit_handlers_lock);
    101102        }
     
    145146                eh = list_get_instance(link, __exit_handler_t, llist);
    146147                eh->func();
     148                free(eh);
    147149                fibril_mutex_lock(&quick_exit_handlers_lock);
    148150        }
Note: See TracChangeset for help on using the changeset viewer.