Message ID | CAJSP0QVeUjc7EZkUfizKEwiWnk-6zT=PrOkJf8GqHdsPnt44mw@mail.gmail.com |
---|---|
State | New |
Headers | show |
diff --git a/trace/simple.c b/trace/simple.c index 3c14568..5a4d607 100644 --- a/trace/simple.c +++ b/trace/simple.c @@ -111,7 +111,7 @@ static bool get_trace_record(unsigned int idx, TraceRecord **recordptr) __sync_synchronize(); /* read memory barrier before accessing record */ /* read the record header to know record length */ read_from_buffer(idx, rec_hdr, sizeof(TraceRecord)); - *recordptr = g_malloc(record->length); + *recordptr = malloc(record->length); /* make a copy of record to avoid being overwritten */ read_from_buffer(idx, (uint8_t *)*recordptr, record->length);