mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/gdbm/gdbm.c (rb_gdbm_nextkey): fix memory leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
93283e7552
commit
27e3cc841c
2 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Nov 26 15:16:07 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||
|
||||
* ext/gdbm/gdbm.c (rb_gdbm_nextkey): fix memory leak.
|
||||
|
||||
Wed Nov 26 03:17:48 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ext/bigdecimal/bigdecimal.c (BigDecimal_to_r): raise exception
|
||||
|
|
|
@ -344,6 +344,7 @@ rb_gdbm_nextkey(GDBM_FILE dbm, VALUE keystr)
|
|||
return Qnil;
|
||||
|
||||
str = rb_str_new(key2.dptr, key2.dsize);
|
||||
free(key2.dptr);
|
||||
OBJ_TAINT(str);
|
||||
return str;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue