File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ PHP NEWS
26
26
. Adjusted closure names to include the parent function's name. (timwolla)
27
27
. Improve randomness of uploaded file names and files created by tempnam().
28
28
(Arnaud)
29
+ . Fixed bug GH-14510 (memleak due to missing pthread_attr_destroy()-call).
30
+ (Florian Engelhardt)
29
31
30
32
- Curl:
31
33
. Deprecated the CURLOPT_BINARYTRANSFER constant. (divinity76)
@@ -196,7 +198,7 @@ PHP NEWS
196
198
. Added class Pdo\Pgsql. (danack, kocsismate)
197
199
. Retrieve the memory usage of the query result resource. (KentarouTakeda)
198
200
. Added Pdo\Pgsql::setNoticeCallBack method to receive DB notices.
199
- (outtersg)
201
+ (outtersg)
200
202
201
203
- PDO_SQLITE:
202
204
. Added class Pdo\Sqlite. (danack, kocsismate)
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ static bool zend_call_stack_get_linux_pthread(zend_call_stack *stack)
139
139
140
140
error = pthread_attr_getstack (& attr , & addr , & max_size );
141
141
if (error ) {
142
+ pthread_attr_destroy (& attr );
142
143
return false;
143
144
}
144
145
@@ -148,6 +149,7 @@ static bool zend_call_stack_get_linux_pthread(zend_call_stack *stack)
148
149
/* In glibc prior to 2.8, addr and size include the guard pages */
149
150
error = pthread_attr_getguardsize (& attr , & guard_size );
150
151
if (error ) {
152
+ pthread_attr_destroy (& attr );
151
153
return false;
152
154
}
153
155
@@ -159,6 +161,8 @@ static bool zend_call_stack_get_linux_pthread(zend_call_stack *stack)
159
161
stack -> base = (int8_t * )addr + max_size ;
160
162
stack -> max_size = max_size ;
161
163
164
+ pthread_attr_destroy (& attr );
165
+
162
166
return true;
163
167
}
164
168
# else /* defined(HAVE_PTHREAD_GETATTR_NP) && defined(HAVE_PTHREAD_ATTR_GETSTACK) */
You can’t perform that action at this time.
0 commit comments