memory_utils: fix close_equal()

parent 79399658
......@@ -101,7 +101,7 @@ static inline void *memdup(const void *data, size_t len)
({ \
if (a >= 0 && a != b) \
close(a); \
if (close >= 0) \
if (b >= 0) \
close(b); \
a = b = -EBADF; \
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment