diff options
| author | Shokuji <[email protected]> | 2019-04-16 09:47:32 +0900 |
|---|---|---|
| committer | Shokuji <[email protected]> | 2019-04-16 09:47:32 +0900 |
| commit | cdfeb53887d886adc10848e4a6e76c81fbd2a4c4 (patch) | |
| tree | 2bc17e536d396f7d20b8c9de4ce39c4f284d9256 /src/hash.c | |
| parent | 164985881b6d7d96218ec5cd986ca1bb4c919698 (diff) | |
| parent | 4e3e4260c3860e4c0c274f520744bdb7629ea9cd (diff) | |
| download | mruby-cdfeb53887d886adc10848e4a6e76c81fbd2a4c4.tar.gz mruby-cdfeb53887d886adc10848e4a6e76c81fbd2a4c4.zip | |
Merge branch 'master' into fix_mruby-io_test
Diffstat (limited to 'src/hash.c')
| -rw-r--r-- | src/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash.c b/src/hash.c index c4820513b..a9367a426 100644 --- a/src/hash.c +++ b/src/hash.c @@ -182,7 +182,7 @@ ht_index(mrb_state *mrb, htable *t) if (!index || index->capa < size) { index = (segindex*)mrb_realloc_simple(mrb, index, sizeof(segindex)+sizeof(struct segkv*)*size); if (index == NULL) { - mrb_free(mrb, index); + mrb_free(mrb, t->index); t->index = NULL; return; } |
