Skip to content

Commit

Permalink
One more destructor for conf_free
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Feb 19, 2014
1 parent 1504bef commit fec6c1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/tls.c
Expand Up @@ -2405,9 +2405,11 @@ fr_tls_server_conf_t *tls_client_conf_parse(CONF_SECTION *cs)
return NULL;
}

talloc_set_destructor(conf, tls_server_conf_free);

if (cf_section_parse(cs, conf, tls_client_config) < 0) {
error:
tls_server_conf_free(conf);
talloc_free(conf);
return NULL;
}

Expand Down

0 comments on commit fec6c1c

Please sign in to comment.