Skip to content

Commit c16c3a8

Browse files
[FIXED] Reuse hdr from pooled jsPubMsg
Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
1 parent c5732b2 commit c16c3a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/stream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6800,7 +6800,7 @@ func (pm *jsPubMsg) returnToPool() {
68006800
if pm == nil {
68016801
return
68026802
}
6803-
pm.subj, pm.dsubj, pm.reply, pm.hdr, pm.msg, pm.o = _EMPTY_, _EMPTY_, _EMPTY_, nil, nil, nil
6803+
pm.subj, pm.dsubj, pm.reply, pm.msg, pm.o = _EMPTY_, _EMPTY_, _EMPTY_, nil, nil
68046804
if len(pm.buf) > 0 {
68056805
pm.buf = pm.buf[:0]
68066806
}

0 commit comments

Comments
 (0)