Skip to content

Commit a63452e

Browse files
committed
keyset: undo changes
1 parent e5f8607 commit a63452e

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/libs/elektra/keyset.c

+1-11
Original file line numberDiff line numberDiff line change
@@ -2554,26 +2554,16 @@ int ksClose (KeySet * ks)
25542554
Key * k;
25552555

25562556
ksRewind (ks);
2557-
int keysNotFreed = 0;
25582557
while ((k = ksNext (ks)) != 0)
25592558
{
2560-
int refs = keyDecRef (k);
2561-
2562-
if (refs > 0)
2563-
{
2564-
keysNotFreed++;
2565-
}
2566-
2559+
keyDecRef (k);
25672560
keyDel (k);
25682561
}
25692562

2570-
printf ("ksClose did NOT free %d keys\n", keysNotFreed);
2571-
25722563
if (ks->array && !test_bit (ks->flags, KS_FLAG_MMAP_ARRAY))
25732564
{
25742565
elektraFree (ks->array);
25752566
}
2576-
25772567
clear_bit (ks->flags, (keyflag_t) KS_FLAG_MMAP_ARRAY);
25782568

25792569
ks->array = 0;

0 commit comments

Comments
 (0)