Skip to content

Commit 828513e

Browse files
committed
test: make the copied set not take the ownership of elements
1 parent b0a2d49 commit 828513e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/test-set.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,8 @@ TEST(set_ensure_allocated) {
145145
}
146146

147147
TEST(set_copy) {
148-
_cleanup_set_free_ Set *s = NULL;
149-
_cleanup_set_free_free_ Set *copy = NULL;
150-
char *key1, *key2, *key3, *key4;
148+
_cleanup_set_free_ Set *s = NULL, *copy = NULL;
149+
_cleanup_free_ char *key1 = NULL, *key2 = NULL, *key3 = NULL, *key4 = NULL;
151150

152151
key1 = strdup("key1");
153152
assert_se(key1);

0 commit comments

Comments
 (0)