Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
continue;
}
if (!IS_VETO_PATH(conn, dname)) {
- TALLOC_FREE(dir_hnd);
TALLOC_FREE(talloced);
errno = ENOTEMPTY;
goto err;
* Are we allowed to delete them ? */
if (!lp_delete_veto_files(SNUM(conn))) {
- TALLOC_FREE(dir_hnd);
errno = ENOTEMPTY;
goto err;
}
at_fname,
AT_REMOVEDIR);
- TALLOC_FREE(dir_hnd);
err:
+
+ TALLOC_FREE(dir_hnd);
TALLOC_FREE(parent_fname);
if (ret != 0) {