ci: fix tests-sanitize-undefined-clang
parent
a27e7f7675
commit
5efd8c62d0
|
@ -1527,11 +1527,10 @@ pub fn (s &string) free() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if s.is_lit == -98761234 {
|
if s.is_lit == -98761234 {
|
||||||
dsfree_msg := c'double string.free() detected\n'
|
|
||||||
$if freestanding {
|
$if freestanding {
|
||||||
bare_eprint(dsfree_msg, u64(unsafe { C.strlen(dsfree_msg) }))
|
bare_eprint(c'double string.free() detected\n', 30)
|
||||||
} $else {
|
} $else {
|
||||||
C.printf(dsfree_msg)
|
C.printf(c'double string.free() detected\n')
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue