Skip to content

Commit

Permalink
modules/sipcapture: fix possible NULL pointer dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
mslehto committed May 24, 2016
1 parent e6a3f66 commit a9cce17
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/sipcapture/sipcapture.c
Expand Up @@ -626,13 +626,13 @@ void * capture_mode_init(str *name, str * params) {
return n;

error:
if (n->name.s){
pkg_free(n->name.s);
}
if (n->table_names){
pkg_free(n->table_names);
}
if (n){
if (n->name.s){
pkg_free(n->name.s);
}
if (n->table_names){
pkg_free(n->table_names);
}
pkg_free(n);
}
return 0;
Expand Down

0 comments on commit a9cce17

Please sign in to comment.