Fix double-close for empty account
authorChip Black <bytex64@bytex64.net>
Mon, 11 Apr 2011 00:14:00 +0000 (19:14 -0500)
committerChip Black <bytex64@bytex64.net>
Mon, 11 Apr 2011 00:14:00 +0000 (19:14 -0500)
http/http_blerg.c

index a4226ab..8a5b9a5 100644 (file)
@@ -294,7 +294,6 @@ struct MHD_Response *create_response_for_range(struct blerg *b, uint64_t from, u
        uint64_t record_count = blerg_get_record_count(b);
 
        if (from > to || from >= record_count || to >= record_count || to - from > 99) {
-               blerg_close(b);
                free(gs);
                return NULL;
        }