Skip to content

Commit b5394a1

Browse files
committed
Polishing
1 parent 61240ee commit b5394a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-web-reactive/src/main/java/org/springframework/core/codec/support/XmlEventDecoder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,14 @@ public Publisher<? extends XMLEvent> apply(DataBuffer dataBuffer) {
143143
}
144144
}
145145
}
146-
DataBufferUtils.release(dataBuffer);
147146
return Flux.fromIterable(events);
148147
}
149148
catch (XMLStreamException ex) {
150149
return Mono.error(ex);
151150
}
152-
151+
finally {
152+
DataBufferUtils.release(dataBuffer);
153+
}
153154
}
154155
}
155156
}

0 commit comments

Comments
 (0)