state.mem_ctx, &first_parms,
(void*)&state, smbcli_list_new_callback);
if (!NT_STATUS_IS_OK(status)) {
- talloc_destroy(state.mem_ctx);
+ talloc_free(state.mem_ctx);
return -1;
}
fn(&state.dirlist[i], Mask, caller_state);
}
- talloc_destroy(state.mem_ctx);
+ talloc_free(state.mem_ctx);
return state.total_received;
}
smbcli_list_old_callback);
if (!NT_STATUS_IS_OK(status)) {
- talloc_destroy(state.mem_ctx);
+ talloc_free(state.mem_ctx);
return -1;
}
break;
}
if (!NT_STATUS_IS_OK(status)) {
- talloc_destroy(state.mem_ctx);
+ talloc_free(state.mem_ctx);
return -1;
}
received = next_parms.search_next.out.count;
fn(&state.dirlist[i], Mask, caller_state);
}
- talloc_destroy(state.mem_ctx);
+ talloc_free(state.mem_ctx);
return state.total_received;
}