Changes in uspace/lib/c/generic/async.c [9c31643:86d7bfa] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async.c
r9c31643 r86d7bfa 294 294 } 295 295 296 /** Connection hash table removal callback function. 297 * 298 * This function is called whenever a connection is removed from the connection 299 * hash table. 300 * 301 * @param item Connection hash table item being removed. 302 * 303 */ 296 304 static void conn_remove(link_t *item) 297 305 { 306 free(hash_table_get_instance(item, connection_t, link)); 298 307 } 299 308 … … 430 439 431 440 fid_t fid = fibril_create(notification_fibril, msg); 441 if (fid == 0) { 442 free(msg); 443 futex_up(&async_futex); 444 return false; 445 } 446 432 447 fibril_add_ready(fid); 433 448 … … 632 647 ipc_answer_0(FIBRIL_connection->close_callid, EOK); 633 648 634 free(FIBRIL_connection);635 649 return 0; 636 650 } … … 681 695 conn->wdata.fid = fibril_create(connection_fibril, conn); 682 696 683 if ( !conn->wdata.fid) {697 if (conn->wdata.fid == 0) { 684 698 free(conn); 699 685 700 if (callid) 686 701 ipc_answer_0(callid, ENOMEM); 702 687 703 return (uintptr_t) NULL; 688 704 } … … 853 869 { 854 870 fid_t fid = fibril_create(async_manager_fibril, NULL); 855 fibril_add_manager(fid); 871 if (fid != 0) 872 fibril_add_manager(fid); 856 873 } 857 874
Note:
See TracChangeset
for help on using the changeset viewer.