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