We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5f8607 commit a63452eCopy full SHA for a63452e
src/libs/elektra/keyset.c
@@ -2554,26 +2554,16 @@ int ksClose (KeySet * ks)
2554
Key * k;
2555
2556
ksRewind (ks);
2557
- int keysNotFreed = 0;
2558
while ((k = ksNext (ks)) != 0)
2559
{
2560
- int refs = keyDecRef (k);
2561
-
2562
- if (refs > 0)
2563
- {
2564
- keysNotFreed++;
2565
- }
2566
+ keyDecRef (k);
2567
keyDel (k);
2568
}
2569
2570
- printf ("ksClose did NOT free %d keys\n", keysNotFreed);
2571
2572
if (ks->array && !test_bit (ks->flags, KS_FLAG_MMAP_ARRAY))
2573
2574
elektraFree (ks->array);
2575
2576
2577
clear_bit (ks->flags, (keyflag_t) KS_FLAG_MMAP_ARRAY);
2578
2579
ks->array = 0;
0 commit comments