summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-structr/item.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/codeberg.org/gruf/go-structr/item.go')
-rw-r--r--vendor/codeberg.org/gruf/go-structr/item.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/vendor/codeberg.org/gruf/go-structr/item.go b/vendor/codeberg.org/gruf/go-structr/item.go
index 12700fa87..08f054907 100644
--- a/vendor/codeberg.org/gruf/go-structr/item.go
+++ b/vendor/codeberg.org/gruf/go-structr/item.go
@@ -1,6 +1,7 @@
package structr
import (
+ "os"
"sync"
"unsafe"
)
@@ -37,7 +38,8 @@ func free_indexed_item(item *indexed_item) {
if len(item.indexed) > 0 ||
item.elem.next != nil ||
item.elem.prev != nil {
- should_not_reach(false)
+ msg := assert("item not in use")
+ os.Stderr.WriteString(msg + "\n")
return
}
item.data = nil