File Coverage

src/xh_stash.c
Criterion Covered Total %
statement 5 5 100.0
branch 2 2 100.0
condition n/a
subroutine n/a
pod n/a
total 7 7 100.0


line stmt bran cond sub pod time code
1             #include "xh_config.h"
2             #include "xh_core.h"
3              
4             void
5 41           xh_stash_clean(xh_stack_t *stash)
6             {
7             SV **value;
8 48 100         while ((value = xh_stack_pop(stash)) != NULL) {
9 7           SvREFCNT_dec(*value);
10             }
11              
12 41           xh_stack_destroy(stash);
13 41           }