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-05-01 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          37 : struct sel *sel_alloc(void)
      10             : {
      11          37 :         return (struct sel *)calloc_w(1, sizeof(struct sel), __func__);
      12             : }
      13             : 
      14          37 : static void sel_free_content(struct sel *sel)
      15             : {
      16          74 :         if(!sel) return;
      17          37 :         cstat_list_free(&sel->clist);
      18          37 :         llines_free(&sel->llines);
      19             :         // Will be freed elsewhere.
      20             :         //bu_list_free(&sel->backup);
      21             : }
      22             : 
      23          37 : void sel_free(struct sel **sel)
      24             : {
      25          74 :         if(!sel || !*sel) return;
      26          37 :         sel_free_content(*sel);
      27          37 :         free_v((void **)sel);
      28             : }

Generated by: LCOV version 1.10