Merge tag 'dma-mapping-5.3-1' of git://git.infradead.org/users/hch/dma-mapping
[linux-2.6-microblaze.git] / tools / perf / util / data-convert-bt.c
index 7b06e73..ddbcd59 100644 (file)
@@ -10,6 +10,7 @@
 #include <inttypes.h>
 #include <linux/compiler.h>
 #include <linux/kernel.h>
+#include <linux/zalloc.h>
 #include <babeltrace/ctf-writer/writer.h>
 #include <babeltrace/ctf-writer/clock.h>
 #include <babeltrace/ctf-writer/stream.h>
@@ -22,7 +23,6 @@
 #include "asm/bug.h"
 #include "data-convert-bt.h"
 #include "session.h"
-#include "util.h"
 #include "debug.h"
 #include "tool.h"
 #include "evlist.h"
@@ -1353,7 +1353,7 @@ static void free_streams(struct ctf_writer *cw)
        for (cpu = 0; cpu < cw->stream_cnt; cpu++)
                ctf_stream__delete(cw->stream[cpu]);
 
-       free(cw->stream);
+       zfree(&cw->stream);
 }
 
 static int ctf_writer__setup_env(struct ctf_writer *cw,