writev 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ === 1.0.1 / 2011-08-19
2
+
3
+ * 1 bug fixed
4
+
5
+ * Free up memory after write.
6
+
1
7
  === 1.0.0 / 2011-08-19
2
8
 
3
9
  * 1 major enhancement
@@ -10,6 +10,7 @@ system call on your IO objects.
10
10
  == FEATURES/PROBLEMS:
11
11
 
12
12
  * Currently only works on SUS systems and Ruby 1.9
13
+ * Can leak memory if an exception is raised during write.
13
14
 
14
15
  == SYNOPSIS:
15
16
 
@@ -42,6 +42,8 @@ static VALUE rb_writev(VALUE io, VALUE list)
42
42
  if((written = writev(fptr->fd, iov, (int)RARRAY_LEN(list))) == -1)
43
43
  rb_sys_fail_path(fptr->pathv);
44
44
 
45
+ xfree(iov);
46
+
45
47
  return LONG2FIX(written);
46
48
  }
47
49
 
@@ -1,5 +1,5 @@
1
1
  require 'writev.so'
2
2
 
3
3
  module WriteV
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: writev
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aaron Patterson