lib/ffi/hiredis_vip/persist.rb in ffi-hiredis_vip-0.1.0.pre3 vs lib/ffi/hiredis_vip/persist.rb in ffi-hiredis_vip-0.1.0.pre4
- old
+ new
@@ -17,9 +17,11 @@
case reply[:type]
when :REDIS_REPLY_INTEGER
reply[:integer]
end
+ ensure
+ ::FFI::HiredisVip::Core.freeReplyObject(reply.pointer) if reply
end
def supports_persist?
true
end