Skip to content

Commit a139225

Browse files
krischerchad-iris
authored andcommitted
Don't free record data as it does not belong to the record.
1 parent 24ae5f5 commit a139225

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tracelist.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,8 @@ mstl3_pack (MS3TraceList *mstl, void (*record_handler) (char *, int, void *),
12801280
id = id->next;
12811281
}
12821282

1283+
/* The record structure never owns the actual data so it should not free it. */
1284+
msr->datasamples = NULL;
12831285
msr3_free (&msr);
12841286

12851287
if (packedsamples)

0 commit comments

Comments
 (0)