MOAIImage-jpg: memory leak, malloc never released. Is replaced by alloca