X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Fstore-simple.c;h=ad93a05ec11b67a8634d9782143824173da9ccca;hb=fd34d77b255eb3a65f5a0f6fa76681ac8ed272b6;hp=fdd5139d5bfb7dfb4a04a9e277dd7af653e66d9e;hpb=806fb6260c0df63b4ff57245cd0f39747797d9e5;p=bluesky.git diff --git a/bluesky/store-simple.c b/bluesky/store-simple.c index fdd5139..ad93a05 100644 --- a/bluesky/store-simple.c +++ b/bluesky/store-simple.c @@ -273,7 +273,6 @@ static gpointer simplestore_new(const gchar *path) gai_strerror(res)); return NULL; } - freeaddrinfo(lookup_result); for (struct addrinfo *ai = lookup_result; ai != NULL; ai = ai->ai_next) { printf("flags=%d family=%d socktype=%d proto=%d\n", ai->ai_flags, @@ -287,6 +286,7 @@ static gpointer simplestore_new(const gchar *path) fprintf(stderr, "Warning: Bad address record size!\n"); } } + freeaddrinfo(lookup_result); store->fd_pool = g_queue_new(); store->fd_pool_lock = g_mutex_new();