We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e94f14 commit a3d9637Copy full SHA for a3d9637
1 file changed
Modules/_remote_debugging/module.c
@@ -1559,13 +1559,13 @@ _remote_debugging_BinaryWriter_finalize_impl(BinaryWriterObject *self)
1559
return NULL;
1560
}
1561
1562
- /* Save total_samples before finalizing */
1563
- self->cached_total_samples = self->writer->total_samples;
1564
-
1565
if (binary_writer_finalize(self->writer) < 0) {
1566
1567
1568
+ /* Save total_samples before finalizing */
+ self->cached_total_samples = self->writer->total_samples;
+
1569
binary_writer_destroy(self->writer);
1570
self->writer = NULL;
1571
0 commit comments