syscall_emul: Fix erroneous use of delete
clang correctly points out an erroneous use of delete.
This commit is contained in:
parent
c0c3316e31
commit
fcbc208bb3
|
@ -333,7 +333,7 @@ futexFunc(SyscallDesc *desc, int callnum, LiveProcess *process,
|
|||
uint8_t *buf = new uint8_t[sizeof(int)];
|
||||
tc->getMemProxy().readBlob((Addr)uaddr, buf, (int)sizeof(int));
|
||||
int mem_val = *((int *)buf);
|
||||
delete buf;
|
||||
delete[] buf;
|
||||
|
||||
if (val != mem_val) {
|
||||
DPRINTF(SyscallVerbose, "sys_futex: FUTEX_WAKE, read: %d, "
|
||||
|
|
Loading…
Reference in a new issue