lib/ffi/hiredis_vip/touch.rb in ffi-hiredis_vip-0.1.0.pre3 vs lib/ffi/hiredis_vip/touch.rb in ffi-hiredis_vip-0.1.0.pre4
- old
+ new
@@ -25,9 +25,11 @@
when :REDIS_REPLY_INTEGER
reply[:integer]
else
0
end
+ ensure
+ ::FFI::HiredisVip::Core.freeReplyObject(reply.pointer) if reply
end
def supports_touch?
true
end