File tree 4 files changed +599
-627
lines changed
tools/website-frontend/public/vendor/asciinema
4 files changed +599
-627
lines changed Original file line number Diff line number Diff line change 16
16
17
17
int main (void )
18
18
{
19
- KDB * handles [NUM_RUNS ];
20
- KeySet * keysets [NUM_RUNS ];
19
+ KDB * handles [NUM_RUNS ];
20
+ KeySet * keysets [NUM_RUNS ];
21
21
22
- Key * parentKey = keyNew ("user" , KEY_END );
22
+ Key * parentKey = keyNew ("user" , KEY_END );
23
23
24
24
for (size_t i = 0 ; i < NUM_RUNS ; ++ i )
25
25
{
@@ -29,20 +29,19 @@ int main (void)
29
29
30
30
kdbGet (handle , ks , parentKey );
31
31
32
- printf ("Retrieved %d keys\n" , (int )ksGetSize (ks ));
32
+ printf ("Retrieved %d keys\n" , (int ) ksGetSize (ks ));
33
33
34
34
handles [i ] = handle ;
35
35
keysets [i ] = ks ;
36
36
}
37
37
38
38
for (size_t i = 0 ; i < NUM_RUNS ; ++ i )
39
39
{
40
- printf ("Freeing %d keys\n" , (int )ksGetSize (keysets [i ]));
40
+ printf ("Freeing %d keys\n" , (int ) ksGetSize (keysets [i ]));
41
41
42
- kdbClose (handles [i ], parentKey );
43
- ksDel (keysets [i ]);
42
+ kdbClose (handles [i ], parentKey );
43
+ ksDel (keysets [i ]);
44
44
}
45
45
46
46
keyDel (parentKey );
47
47
}
48
-
Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ The text below summarizes updates to the [C (and C++)-based libraries](https://w
153
153
- ` kdbconfig.h ` is no longer included in the installed headers. This is because it could cause conflicts with other
154
154
` config.h ` -type headers from applications. _ (Klemens Böswirth)_
155
155
- ` ksAppendKey ` : state that it only fail on memory problems. _ (Markus Raab)_
156
+ - Fix memory leak in ` kdbGet ` . _ (Markus Raab)_
156
157
- Implemented ` kdberrors.h ` directly without generation of the ` specification ` file because of drastically reduced error code count _ (Michael Zronek)_
157
158
- ` keyIsDirectBelow ` was renamed to ` keyIsDirectlyBelow ` . _ (Philipp Gackstatter)_
158
159
- ` keyMeta ` was added to provide access to a key's underlying KeySet that holds its metadata keys. _ (Philipp Gackstatter)_
Original file line number Diff line number Diff line change @@ -2567,13 +2567,13 @@ int ksClose (KeySet * ks)
2567
2567
keyDel (k );
2568
2568
}
2569
2569
2570
- printf ("ksClose did NOT free %d keys\n" , keysNotFreed );
2570
+ printf ("ksClose did NOT free %d keys\n" , keysNotFreed );
2571
2571
2572
2572
if (ks -> array && !test_bit (ks -> flags , KS_FLAG_MMAP_ARRAY ))
2573
2573
{
2574
2574
elektraFree (ks -> array );
2575
2575
}
2576
-
2576
+
2577
2577
clear_bit (ks -> flags , (keyflag_t ) KS_FLAG_MMAP_ARRAY );
2578
2578
2579
2579
ks -> array = 0 ;
You can’t perform that action at this time.
0 commit comments