Issue #18874: tracemalloc: Comment the trace_t structure
diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c
index 7e9f698..5f45f3d 100644
--- a/Modules/_tracemalloc.c
+++ b/Modules/_tracemalloc.c
@@ -93,8 +93,12 @@
static PyObject *unknown_filename = NULL;
static traceback_t tracemalloc_empty_traceback;
+/* Trace of a memory block */
typedef struct {
+ /* Size of the memory block in bytes */
size_t size;
+
+ /* Traceback where the memory block was allocated */
traceback_t *traceback;
} trace_t;