summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-04 05:08:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-04 05:08:57 +0000
commit3916eb783c3154f62b4c2d7d6a7b88c656281822 (patch)
tree33ec01d96fdcc5aeeb118d06ff6c3c0e084c054d /marshal.c
parente231d67ee1e9fefaf51ccebb10164b184f32440f (diff)
* marshal.c (dump_ensure), process.c (run_exec_dup2),
string.c (rb_str_replace), transcode.c (transcode_dispatch): fixed memory leaks. based on patches from shinichiro.h <shinichiro.hamaji AT gmail.com> at [ruby-dev:35751]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/marshal.c b/marshal.c
index ec0041dd01..b01d2de201 100644
--- a/marshal.c
+++ b/marshal.c
@@ -803,6 +803,7 @@ dump_ensure(struct dump_arg *arg)
st_free_table(arg->symbols);
st_free_table(arg->data);
st_free_table(arg->compat_tbl);
+ if (arg->encodings) st_free_table(arg->encodings);
DATA_PTR(arg->wrapper) = 0;
arg->wrapper = 0;
if (arg->taint) {