]> git.ipfire.org Git - thirdparty/bind9.git/commit
cleanup error handling.
authorMark Andrews <marka@isc.org>
Wed, 5 Feb 2020 05:35:15 +0000 (16:35 +1100)
committerMark Andrews <marka@isc.org>
Wed, 5 Feb 2020 07:37:17 +0000 (18:37 +1100)
commitd64921848dbec07bf07d04b6ceaa6fed878f1381
tree43e0930a14191042e78caea2139670c91c3a18cd
parent2e189bb053dcc1be16db9c6a0d23755fdb892069
cleanup error handling.

336 cleanup_mem:
337        /* cleanup memory */
338
339        /* free tmpPath memory */

CID 1452701 (#1 of 1): Dereference before null check (REVERSE_INULL)
check_after_deref: Null-checking tmpPath suggests that it
may be null, but it has already been dereferenced on all
paths leading to the check.

340        if (tmpPath != NULL && result != ISC_R_SUCCESS)
341                isc_mem_free(named_g_mctx, tmpPath);
342
343        /* free tmpPath memory */
344        return (result);
contrib/dlz/drivers/dlz_filesystem_driver.c