don't free stack-allocated arrays in ffi generated code

This commit is contained in:
Alex Shinn 2012-07-16 23:34:10 +09:00
parent ea8a3df083
commit 69646a0c94

View file

@ -1130,7 +1130,7 @@
(cat " }\n"))))
(define (write-free type)
(if (type-array type)
(if (and (type-array type) (not (number? (type-array type))))
(cat " free(tmp" (type-index-string type) ");\n")))
(define (write-cleanup func)