}
if (strcmp(dir, ".") == 0) {
isc_mem_free(mctx, dir);
- dir = NULL;
}
}
0);
if (result != ISC_R_SUCCESS) {
isc_mem_put(mctx, *namep, sizeof(**namep));
- *namep = NULL;
return result;
}
dns_name_dup(dns_fixedname_name(&fname), mctx, *namep);
if (server->session_keyfile != NULL) {
isc_file_remove(server->session_keyfile);
isc_mem_free(mctx, server->session_keyfile);
- server->session_keyfile = NULL;
}
if (server->session_keyname != NULL) {
dns_name_free(server->session_keyname, mctx);
}
isc_mem_put(mctx, server->session_keyname, sizeof(dns_name_t));
- server->session_keyname = NULL;
}
if (server->sessionkey != NULL) {
ret = dns_tsigkey_create(keyname, alg, secret, secretlen, mctx,
&tsigkey);
isc_mem_put(mctx, secret, secretalloc);
- secret = NULL;
if (ret == ISC_R_SUCCESS) {
ret = dns_tsigkeyring_add(ring, tsigkey);
}
if (realm != NULL) {
isc_mem_free(gmctx, realm);
- realm = NULL;
}
word = nsu_strsep(&cmdline, " \t\r\n");
}
isc_mem_put(gmctx, reqinfo, sizeof(nsu_requestinfo_t));
- reqinfo = NULL;
ddebug("About to create rcvmsg");
dns_message_create(gmctx, NULL, NULL, DNS_MESSAGE_INTENTPARSE, &rcvmsg);
#ifdef HAVE_GSSAPI
if (kserver != NULL) {
isc_mem_put(gmctx, kserver, sizeof(isc_sockaddr_t));
- kserver = NULL;
}
if (realm != NULL) {
isc_mem_free(gmctx, realm);
- realm = NULL;
}
if (dns_name_dynamic(&tmpzonename)) {
dns_name_free(&tmpzonename, gmctx);
if (!state) {
if (query->ecs_addr != NULL) {
isc_mem_free(mctx, query->ecs_addr);
- query->ecs_addr = NULL;
}
break;
}
}
if (query->ecs_addr != NULL) {
isc_mem_free(mctx, query->ecs_addr);
- query->ecs_addr = NULL;
}
isc_mem_free(mctx, query);
}
(cookie == NULL || len != entry->cookielen))
{
isc_mem_put(adb->mctx, entry->cookie, entry->cookielen);
- entry->cookie = NULL;
entry->cookielen = 0;
}
}
if (options->zonedir != NULL) {
isc_mem_free(mctx, options->zonedir);
- options->zonedir = NULL;
}
if (options->allow_query != NULL) {
isc_buffer_free(&options->allow_query);
if (dst->zonedir != NULL) {
isc_mem_free(mctx, dst->zonedir);
- dst->zonedir = NULL;
}
if (src->zonedir != NULL) {
}
isc_mem_put(knode->mctx, knode->dslist, sizeof(*knode->dslist));
- knode->dslist = NULL;
}
dns_name_free(&knode->name, knode->mctx);
REQUIRE(!dns_rdataset_isassociated(*item));
isc_mempool_put(msg->rdspool, *item);
- *item = NULL;
}
void
if (remote->ok != NULL) {
isc_mem_cput(mctx, remote->ok, count, sizeof(bool));
- remote->ok = NULL;
}
if (remote->addresses != NULL) {
isc_mem_cput(mctx, remote->addresses, count,
sizeof(isc_sockaddr_t));
- remote->addresses = NULL;
}
if (remote->sources != NULL) {
isc_mem_cput(mctx, remote->sources, count,
sizeof(isc_sockaddr_t));
- remote->sources = NULL;
}
if (remote->keynames != NULL) {
dns_name_free(remote->keynames[i], mctx);
isc_mem_put(mctx, remote->keynames[i],
sizeof(dns_name_t));
- remote->keynames[i] = NULL;
}
}
isc_mem_cput(mctx, remote->keynames, count,
sizeof(dns_name_t *));
- remote->keynames = NULL;
}
if (remote->tlsnames != NULL) {
dns_name_free(remote->tlsnames[i], mctx);
isc_mem_put(mctx, remote->tlsnames[i],
sizeof(dns_name_t));
- remote->tlsnames[i] = NULL;
}
}
isc_mem_cput(mctx, remote->tlsnames, count,
sizeof(dns_name_t *));
- remote->tlsnames = NULL;
}
remote->curraddr = 0;
* Search and domain are mutually exclusive.
*/
isc_mem_free(conf->mctx, conf->domainname);
- conf->domainname = NULL;
}
/*
if (tsig.signature != NULL) {
isc_mem_put(mctx, tsig.signature, sigsize);
- tsig.signature = NULL;
}
dns_message_gettempname(msg, &owner);
dns_view_setnewzones(view, false, NULL, NULL, 0ULL);
if (view->new_zone_file != NULL) {
isc_mem_free(view->mctx, view->new_zone_file);
- view->new_zone_file = NULL;
}
if (view->new_zone_dir != NULL) {
isc_mem_free(view->mctx, view->new_zone_dir);
- view->new_zone_dir = NULL;
}
#ifdef HAVE_LMDB
if (view->new_zone_dbenv != NULL) {
}
if (view->new_zone_db != NULL) {
isc_mem_free(view->mctx, view->new_zone_db);
- view->new_zone_db = NULL;
}
#endif /* HAVE_LMDB */
dns_fwdtable_destroy(&view->fwdtable);
if (view->new_zone_file != NULL) {
isc_mem_free(view->mctx, view->new_zone_file);
- view->new_zone_file = NULL;
}
#ifdef HAVE_LMDB
if (view->new_zone_db != NULL) {
isc_mem_free(view->mctx, view->new_zone_db);
- view->new_zone_db = NULL;
}
#endif /* HAVE_LMDB */
if (result != ISC_R_SUCCESS) {
if (view->new_zone_file != NULL) {
isc_mem_free(view->mctx, view->new_zone_file);
- view->new_zone_file = NULL;
}
#ifdef HAVE_LMDB
if (view->new_zone_db != NULL) {
isc_mem_free(view->mctx, view->new_zone_db);
- view->new_zone_db = NULL;
}
if (env != NULL) {
mdb_env_close(env);
if (view->new_zone_dir != NULL) {
isc_mem_free(view->mctx, view->new_zone_dir);
- view->new_zone_dir = NULL;
}
if (dir == NULL) {
if (zone->masterfile != NULL) {
isc_mem_free(zone->mctx, zone->masterfile);
}
- zone->masterfile = NULL;
if (zone->keydirectory != NULL) {
isc_mem_free(zone->mctx, zone->keydirectory);
}
- zone->keydirectory = NULL;
if (zone->kasp != NULL) {
dns_kasp_detach(&zone->kasp);
}
if (zone->journal != NULL) {
isc_mem_free(zone->mctx, zone->journal);
}
- zone->journal = NULL;
if (zone->stats != NULL) {
isc_stats_detach(&zone->stats);
}
}
if (masterfile != NULL) {
isc_mem_free(zone->mctx, masterfile);
- masterfile = NULL;
}
if (result == DNS_R_CONTINUE) {
if (lcfg->tag != NULL) {
isc_mem_free(lcfg->lctx->mctx, lcfg->tag);
}
- lcfg->tag = NULL;
lcfg->highest_level = 0;
lcfg->magic = 0;
if (lcfg->tag != NULL) {
isc_mem_free(lcfg->lctx->mctx, lcfg->tag);
}
- lcfg->tag = NULL;
}
}
isc_mem_free(mctx, stream->uri);
if (stream->GET_path != NULL) {
isc_mem_free(mctx, stream->GET_path);
- stream->GET_path = NULL;
stream->GET_path_len = 0;
}
if (!isc_nm_http_path_isvalid(socket->h2->request_path)) {
isc_mem_free(socket->worker->mctx, socket->h2->request_path);
- socket->h2->request_path = NULL;
return ISC_HTTP_ERROR_BAD_REQUEST;
}
socket->h2->cbarg = handler->cbarg;
} else {
isc_mem_free(socket->worker->mctx, socket->h2->request_path);
- socket->h2->request_path = NULL;
return ISC_HTTP_ERROR_NOT_FOUND;
}
if (sock->h2->request_path != NULL) {
isc_mem_free(sock->worker->mctx,
sock->h2->request_path);
- sock->h2->request_path = NULL;
}
if (sock->h2->query_data != NULL) {
isc_mem_free(sock->worker->mctx, sock->h2->query_data);
- sock->h2->query_data = NULL;
}
INSIST(sock->h2->connect.cstream == NULL);
if (sock->h2->connect.uri != NULL) {
isc_mem_free(sock->worker->mctx,
sock->h2->connect.uri);
- sock->h2->connect.uri = NULL;
}
isc__nm_httpsession_detach(&sock->h2->session);
}
*/
isc_mem_cput(sock->worker->mctx, sock->children,
sock->nchildren, sizeof(*sock));
- sock->children = NULL;
sock->nchildren = 0;
}
}
isc_mem_put(client->manager->mctx, client->zoneversion,
client->zoneversionlength);
- client->zoneversion = NULL;
client->zoneversionlength = 0;
}
if (client->query.dns64_aaaaok != NULL) {
isc_mem_cput(client->manager->mctx, client->query.dns64_aaaaok,
client->query.dns64_aaaaoklen, sizeof(bool));
- client->query.dns64_aaaaok = NULL;
client->query.dns64_aaaaoklen = 0;
}
if (everything) {
isc_mem_put(client->manager->mctx, client->query.rpz_st,
sizeof(*client->query.rpz_st));
- client->query.rpz_st = NULL;
}
}
if (client->query.qc != NULL) {
if (sctx->server_id != NULL) {
isc_mem_free(sctx->mctx, sctx->server_id);
- sctx->server_id = NULL;
}
if (serverid != NULL) {
*/
for (i = 0; i < 11; i++) {
isc_mempool_put(mp1, items1[i]);
- items1[i] = NULL;
}
#if !__SANITIZE_ADDRESS__
}
for (i = 0; i < 50; i++) {
isc_mempool_put(mp2, items2[i]);
- items2[i] = NULL;
}
}
*/
for (i = 11; i < MP1_MAXALLOC; i++) {
isc_mempool_put(mp1, items1[i]);
- items1[i] = NULL;
}
isc_mempool_destroy(&mp1);