Lines Matching refs:bson_malloc
37 return (mongo*)bson_malloc(sizeof(mongo)); in mongo_create()
105 return (mongo_cursor*)bson_malloc(sizeof(mongo_cursor)); in mongo_cursor_create()
127 mongo_message *mm = ( mongo_message * )bson_malloc( len ); in mongo_message_create()
181 out = ( mongo_reply * )bson_malloc( len ); in mongo_read_response()
253 conn->primary = bson_malloc( sizeof( mongo_host_port ) ); in mongo_connect()
270 conn->replset = bson_malloc( sizeof( mongo_replset ) ); in mongo_replset_init()
274 conn->replset->name = ( char * )bson_malloc( strlen( name ) + 1 ); in mongo_replset_init()
277 conn->primary = bson_malloc( sizeof( mongo_host_port ) ); in mongo_replset_init()
281 mongo_host_port *host_port = bson_malloc( sizeof( mongo_host_port ) ); in mongo_replset_add_node()
362 host_port = bson_malloc( sizeof( mongo_host_port ) ); in mongo_replset_check_seed()
766 (char *)bson_malloc( bson_iterator_string_len( &it ) ); in mongo_cursor_op_query()
835 mongo_cursor *cursor = ( mongo_cursor * )bson_malloc( sizeof( mongo_cursor ) ); in mongo_find()
878 cursor->ns = ( const char * )bson_malloc( strlen( ns ) + 1 ); in mongo_cursor_init()
1077 char *ns = bson_malloc( sl + 5 + 1 ); /* ".$cmd" + nul */ in mongo_run_command()
1178 conn->lasterrstr = ( char * )bson_malloc( bson_iterator_string_len( &it ) ); in mongo_cmd_get_error_helper()
1251 char *ns = bson_malloc( strlen( db ) + strlen( ".system.users" ) + 1 ); in mongo_cmd_add_user()