Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 122858 Details for
Bug 182946
Memory leak in dev-lang/ruby-1.8.6-r1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to ruby
ruby-patch.diff (text/plain), 1.32 KB, created by
Mike Doty (RETIRED)
on 2007-06-23 05:15:01 UTC
(
hide
)
Description:
patch to ruby
Filename:
MIME Type:
Creator:
Mike Doty (RETIRED)
Created:
2007-06-23 05:15:01 UTC
Size:
1.32 KB
patch
obsolete
>Index: ptr.c >=================================================================== >--- ptr.c (revision 12047) >+++ ptr.c (working copy) >@@ -53,6 +53,8 @@ > void > dlptr_free(struct ptr_data *data) > { >+ if (!data) >+ return; > if (data->ptr) { > DEBUG_CODE({ > printf("dlptr_free(): removing the pointer `0x%x' from the MemorySpace\n", >@@ -69,4 +71,5 @@ > if (data->stype) dlfree(data->stype); > if (data->ssize) dlfree(data->ssize); > if (data->ids) dlfree(data->ids); >+ dlfree(data); > } > > void >Index: sym.c >=================================================================== >--- sym.c (revision 12047) >+++ sym.c (working copy) >@@ -57,6 +57,8 @@ > void > dlsym_free(struct sym_data *data) > { >+ if(!data) >+ return; > if( data->name ){ > DEBUG_CODE({ > printf("dlsym_free(): free(data->name:%s)\n",data->name); >@@ -69,4 +71,5 @@ > }); > free(data->type); > } >+ dlfree(data); > } > > VALUE >Index: handle.c >=================================================================== >--- handle.c (revision 12047) >+++ handle.c (working copy) >@@ -10,7 +10,10 @@ > void > dlhandle_free(struct dl_handle *dlhandle) > { >+ if (!dlhandle) >+ return; > if (dlhandle->ptr && dlhandle->open && dlhandle->enable_close) { >- dlclose(dlhandle->ptr); >+ dlclose(dlhandle->ptr); > } >+ dlfree(dlhandle); > } > > VALUE
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 182946
:
122855
|
122856
| 122858 |
122870