Skip to content

Commit

Permalink
Fixed a bug in grn_view_cursor_open().
Browse files Browse the repository at this point in the history
  • Loading branch information
daijiro committed Sep 2, 2009
1 parent fcd6823 commit 7414b41
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/db.c
Expand Up @@ -1350,11 +1350,8 @@ grn_view_cursor_open(grn_ctx *ctx, grn_obj *view,
}
vc->bins[n] = c;
});
if (i) {
vc->n_entries = i;
return vc;
}
GRN_FREE(vc->bins);
vc->n_entries = i;
return vc;
}
GRN_FREE(vc);
}
Expand Down

0 comments on commit 7414b41

Please sign in to comment.