From ef42202ac8ed27e7ff1fc90ef8bc2590046dff25 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Mon, 22 Apr 2013 23:12:15 -0400 Subject: Add set_consume which always takes ownership Freeing in error path is the common pattern with set_put(). --- src/test/test-prioq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test') diff --git a/src/test/test-prioq.c b/src/test/test-prioq.c index 73c640840a..aeac73973b 100644 --- a/src/test/test-prioq.c +++ b/src/test/test-prioq.c @@ -119,7 +119,7 @@ static void test_struct(void) { assert_se(r >= 0); if (i % 4 == 0) { - r = set_put(s, t); + r = set_consume(s, t); assert_se(r >= 0); } } -- cgit v1.2.3-54-g00ecf