CID 316510: Memory - corruptions (USE_AFTER_FREE)
*** CID 316510: Memory - corruptions (USE_AFTER_FREE)
/bin/named/statschannel.c: 2353 in generatexml()
2347
2348 cleanup:
2349 isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL,
2350 NAMED_LOGMODULE_SERVER, ISC_LOG_ERROR,
2351 "failed generating XML response");
2352 if (writer != NULL) {
>>> CID 316510: Memory - corruptions (USE_AFTER_FREE)
>>> Calling "xmlFreeTextWriter" frees pointer "writer" which has already been freed.
2353 xmlFreeTextWriter(writer);
2354 }
2355 if (doc != NULL) {
2356 xmlFreeDoc(doc);
2357 }
2358 return (ISC_R_FAILURE);