LCOV - code coverage report
Current view: top level - src/client/monitor - sel.c (source / functions) Hit Total Coverage
Test: burp-coverage-clean.info Lines: 10 10 100.0 %
Date: 2017-10-31 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          36 : struct sel *sel_alloc(void)
      10             : {
      11          36 :         return (struct sel *)calloc_w(1, sizeof(struct sel), __func__);
      12             : }
      13             : 
      14          36 : static void sel_free_content(struct sel *sel)
      15             : {
      16          72 :         if(!sel) return;
      17          36 :         cstat_list_free(&sel->clist);
      18          36 :         llines_free(&sel->llines);
      19             :         // Will be freed elsewhere.
      20             :         //bu_list_free(&sel->backup);
      21             : }
      22             : 
      23          36 : void sel_free(struct sel **sel)
      24             : {
      25          72 :         if(!sel || !*sel) return;
      26          36 :         sel_free_content(*sel);
      27          36 :         free_v((void **)sel);
      28             : }

Generated by: LCOV version 1.10