mirror of
https://github.com/imgproxy/imgproxy.git
synced 2024-11-24 08:12:38 +02:00
Fix memory leak
This commit is contained in:
parent
55b972106c
commit
e41a4ab13e
@ -257,7 +257,7 @@ func processImage(data []byte, imgtype imageType, po processingOptions, t *timer
|
||||
|
||||
// Finally, save
|
||||
var ptr unsafe.Pointer
|
||||
defer C.g_free(C.gpointer(ptr))
|
||||
defer C.g_free_go(&ptr)
|
||||
|
||||
imgsize := C.size_t(0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user