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: 2016-01-03 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 :         llines_free(&sel->llines);
      19             :         // Will be freed elsewhere.
      20             :         //bu_list_free(&sel->backup);
      21             : }
      22             : 
      23          17 : void sel_free(struct sel **sel)
      24             : {
      25          34 :         if(!sel || !*sel) return;
      26          17 :         sel_free_content(*sel);
      27          17 :         free_v((void **)sel);
      28             : }

Generated by: LCOV version 1.10