File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ PHP NEWS
31
31
. Fix undefined behaviour in phpdbg_load_module_or_extension(). (nielsdos)
32
32
. Fix NULL pointer dereference in phpdbg_create_conditional_breal(). (nielsdos)
33
33
34
+ - Posix:
35
+ . Fix memory leak in posix_ttyname() (girgias)
36
+
34
37
- TSRM:
35
38
. Fixed Windows shmget() wrt. IPC_PRIVATE. (Tyson Andre)
36
39
Original file line number Diff line number Diff line change @@ -547,15 +547,15 @@ PHP_FUNCTION(posix_ttyname)
547
547
efree (p );
548
548
RETURN_FALSE ;
549
549
}
550
- RETURN_STRING (p );
550
+ RETVAL_STRING (p );
551
551
efree (p );
552
552
#else
553
553
if (NULL == (p = ttyname (fd ))) {
554
554
POSIX_G (last_error ) = errno ;
555
555
RETURN_FALSE ;
556
556
}
557
- #endif
558
557
RETURN_STRING (p );
558
+ #endif
559
559
}
560
560
/* }}} */
561
561
You can’t perform that action at this time.
0 commit comments