aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ruby19
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2012-09-22 22:27:51 +0800
committerswills <swills@FreeBSD.org>2012-09-22 22:27:51 +0800
commit7319ad3518612e93ce41c4bcc9ab8d35aa5e1209 (patch)
treeb3206e3464e7f7986ac5c43c855e4312ff9c80f7 /lang/ruby19
parent6bdff8f2b03335ee8921bf6ad999ddd697e9e4f1 (diff)
downloadfreebsd-ports-gnome-7319ad3518612e93ce41c4bcc9ab8d35aa5e1209.tar.gz
freebsd-ports-gnome-7319ad3518612e93ce41c4bcc9ab8d35aa5e1209.tar.zst
freebsd-ports-gnome-7319ad3518612e93ce41c4bcc9ab8d35aa5e1209.zip
- Fix memory leak
PR: ports/171807 Submitted by: stas
Diffstat (limited to 'lang/ruby19')
-rw-r--r--lang/ruby19/files/patch-thread_pthread.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lang/ruby19/files/patch-thread_pthread.c b/lang/ruby19/files/patch-thread_pthread.c
new file mode 100644
index 000000000000..462f1c1d3d9b
--- /dev/null
+++ b/lang/ruby19/files/patch-thread_pthread.c
@@ -0,0 +1,10 @@
+--- thread_pthread.c.orig 2012-09-20 00:26:58.000000000 -0700
++++ thread_pthread.c 2012-09-20 00:27:17.000000000 -0700
+@@ -248,6 +248,7 @@
+ #endif
+
+ r = pthread_cond_init(&cond->cond, &attr);
++ pthread_condattr_destroy(&attr);
+ if (r != 0) {
+ rb_bug_errno("pthread_cond_init", r);
+ }