rubytea 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/ext/tea.c +3 -1
  2. data/rubytea.gemspec +1 -1
  3. metadata +2 -2
data/ext/tea.c CHANGED
@@ -91,7 +91,7 @@ VALUE rubytea_exec(VALUE self, VALUE data, VALUE rkey, char op)
91
91
  return Qnil;
92
92
  }
93
93
  size_t c = sizeof(uint32_t) * len;
94
- uint32_t *ptr = ALLOCA_N(uint32_t, len);
94
+ uint32_t *ptr = ALLOC_N(uint32_t, len);
95
95
 
96
96
  for (i = 0; i < len; ++i)
97
97
  {
@@ -108,6 +108,8 @@ VALUE rubytea_exec(VALUE self, VALUE data, VALUE rkey, char op)
108
108
  {
109
109
  rb_ary_store(data, i, UINT2NUM(ptr[i]));
110
110
  }
111
+
112
+ xfree(ptr);
111
113
  return data;
112
114
 
113
115
  }
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rubytea'
3
- s.version = '0.1.1'
3
+ s.version = '0.1.2'
4
4
  s.files = `git ls-files`.split("\n")
5
5
  s.extensions = ["ext/extconf.rb"]
6
6
  s.author = 'James Fairbairn'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rubytea
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Fairbairn
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-06 00:00:00 +01:00
13
+ date: 2011-04-07 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency