Skip to content

Commit 325ca31

Browse files
hwdedevnexen
authored andcommitted
FPM: zlog, fix free on wrong address for message prepend.
1 parent 7166932 commit 325ca31

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ PHP NEWS
66
. Fixed bug #80047 (DatePeriod doesn't warn with custom DateTimeImmutable).
77
(Derick)
88

9+
- FPM:
10+
. Fixed zlog message prepend, free on incorrect address. (Heiko Weber)
11+
912
- GD:
1013
. Fixed bug GH-8848 (imagecopyresized() error refers to the wrong argument).
1114
(cmb)

sapi/fpm/fpm/zlog.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ zlog_bool zlog_stream_set_msg_suffix(
651651
stream->msg_final_suffix_len = strlen(final_suffix);
652652
len = stream->msg_final_suffix_len + 1;
653653
if (stream->msg_final_suffix != NULL) {
654-
free(stream->msg_suffix);
654+
free(stream->msg_final_suffix);
655655
}
656656
stream->msg_final_suffix = malloc(len);
657657
if (stream->msg_final_suffix == NULL) {

0 commit comments

Comments
 (0)