Skip to content

Commit 310598f

Browse files
authored
Update device_tracer.cc
1 parent cde7db8 commit 310598f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

paddle/fluid/platform/device_tracer.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ void CUPTIAPI bufferRequested(uint8_t **buffer, size_t *size,
130130
uint8_t *buf = reinterpret_cast<uint8_t *>(malloc(kBufSize + kAlignSize));
131131
*size = kBufSize;
132132
*buffer = ALIGN_BUFFER(buf, kAlignSize);
133-
free(buf);
134-
buf = NULL;
135133
*maxNumRecords = 0;
136134
}
137135

0 commit comments

Comments
 (0)