LCOV - code coverage report
Current view: top level - src/client/monitor - sel.c (source / functions) Hit Total Coverage
Test: burp-coverage-clean.info Lines: 11 11 100.0 %
Date: 2015-11-30 Functions: 3 3 100.0 %

          Line data    Source code
       1             : #include "../../burp.h"
       2             : #include "../../alloc.h"
       3             : #include "../../bu.h"
       4             : #include "../../cstat.h"
       5             : #include "lline.h"
       6             : #include "sel.h"
       7             : #include "status_client_ncurses.h"
       8             : 
       9          17 : struct sel *sel_alloc(void)
      10             : {
      11          17 :         return (struct sel *)calloc_w(1, sizeof(struct sel), __func__);
      12             : }
      13             : 
      14          17 : static void sel_free_content(struct sel *sel)
      15             : {
      16          34 :         if(!sel) return;
      17          17 :         cstat_list_free(&sel->clist);
      18          17 :         bu_list_free(&sel->backup);
      19          17 :         llines_free(&sel->llines);
      20             : }
      21             : 
      22          17 : void sel_free(struct sel **sel)
      23             : {
      24          34 :         if(!sel || !*sel) return;
      25          17 :         sel_free_content(*sel);
      26          17 :         free_v((void **)sel);
      27             : }

Generated by: LCOV version 1.10