diff options
author | Luca Deri <deri@ntop.org> | 2020-07-16 17:56:37 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-07-16 17:56:37 +0200 |
commit | 6e1dcba9dde841bd0de8fcb67687b80e02731948 (patch) | |
tree | 5c6242f7bdf20b070353774f67cb8fc2d5ac031d /src/lib/ndpi_main.c | |
parent | ebf18a0c6179004bc62836ee7f07360067d3ac2e (diff) |
Indendentation fix
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index a10b194e7..bd986f986 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -100,16 +100,13 @@ void *ndpi_calloc(unsigned long count, size_t size) { /* ****************************************** */ void ndpi_free(void *ptr) { - if(_ndpi_free){ - if(ptr){ - _ndpi_free(ptr); - } - }else{ - if(ptr){ - free(ptr); - } - } - + if(_ndpi_free) { + if(ptr) + _ndpi_free(ptr); + } else { + if(ptr) + free(ptr); + } } /* ****************************************** */ |