Skip to content

Commit

Permalink
sources/config.c: fix memory leak (#557)
Browse files Browse the repository at this point in the history
found by cppcheck
  • Loading branch information
chipitsine authored Feb 6, 2024
1 parent 72c5469 commit 1c72f0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sources/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ od_config_listen_t *od_config_listen_add(od_config_t *config)

listen->tls_opts = od_tls_opts_alloc();
if (listen->tls_opts == NULL) {
free(listen);
return NULL;
}

Expand Down

0 comments on commit 1c72f0d

Please sign in to comment.