mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-08 15:08:16 -07:00
Do not free a pointer you don't own
This commit is contained in:
parent
b7e65e7018
commit
e7dcc5a653
1 changed files with 0 additions and 1 deletions
1
vips.go
1
vips.go
|
|
@ -531,7 +531,6 @@ func readImageType(buf []byte) string {
|
|||
length := C.size_t(len(buf))
|
||||
imageBuf := unsafe.Pointer(&buf[0])
|
||||
load := C.vips_foreign_find_load_buffer(imageBuf, length)
|
||||
defer C.free(imageBuf)
|
||||
return C.GoString(load)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue