Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 393646 Details for
Bug 534308
=net-p2p/transmission-2.84 - transmission: segmentation fault in node_alloc () at list.c:43
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
the upstream patch!
trac_5735.patch (text/plain), 1.18 KB, created by
Marco Ziebell
on 2015-01-10 22:22:06 UTC
(
hide
)
Description:
the upstream patch!
Filename:
MIME Type:
Creator:
Marco Ziebell
Created:
2015-01-10 22:22:06 UTC
Size:
1.18 KB
patch
obsolete
>Index: /trunk/libtransmission/list.c >=================================================================== >--- /trunk/libtransmission/list.c (revision 14318) >+++ /trunk/libtransmission/list.c (revision 14319) >@@ -31,16 +31,20 @@ > node_alloc (void) > { >- tr_list * ret; >- >- if (recycled_nodes == NULL) >- { >- ret = tr_new (tr_list, 1); >- } >- else >- { >- tr_lockLock (getRecycledNodesLock ()); >+ tr_list * ret = NULL; >+ tr_lock * lock = getRecycledNodesLock (); >+ >+ tr_lockLock (lock); >+ >+ if (recycled_nodes != NULL) >+ { > ret = recycled_nodes; > recycled_nodes = recycled_nodes->next; >- tr_lockUnlock (getRecycledNodesLock ()); >+ } >+ >+ tr_lockUnlock (lock); >+ >+ if (ret == NULL) >+ { >+ ret = tr_new (tr_list, 1); > } > >@@ -52,11 +56,13 @@ > node_free (tr_list* node) > { >+ tr_lock * lock = getRecycledNodesLock (); >+ > if (node != NULL) > { > *node = TR_LIST_CLEAR; >- tr_lockLock (getRecycledNodesLock ()); >+ tr_lockLock (lock); > node->next = recycled_nodes; > recycled_nodes = node; >- tr_lockUnlock (getRecycledNodesLock ()); >+ tr_lockUnlock (lock); > } > }
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 534308
:
392938
| 393646