odr_destroy(m_s2z_odr_init);
if (m_s2z_odr_search)
odr_destroy(m_s2z_odr_search);
+ if (m_s2z_odr_scan)
+ odr_destroy(m_s2z_odr_scan);
if (!m_parent)
low_socket_close();
if (!m_parent)
}
if (m_backend_elementset)
{
- Z_ElementSetNames *esn = mk_esn_from_schema(odr_encode(),
- m_backend_elementset);
+ Z_ElementSetNames *esn =
+ mk_esn_from_schema(
+ odr_encode(),
+ *m_backend_elementset ? m_backend_elementset : 0);
sr->smallSetElementSetNames = esn;
sr->mediumSetElementSetNames = esn;
}
}
if (m_backend_elementset)
{
- Z_ElementSetNames *esn = mk_esn_from_schema(odr_encode(),
- m_backend_elementset);
+ Z_ElementSetNames *esn =
+ mk_esn_from_schema(
+ odr_encode(),
+ *m_backend_elementset ? m_backend_elementset : 0);
Z_RecordComposition *comp = (Z_RecordComposition *)
odr_malloc(odr_encode(), sizeof(Z_RecordComposition));
comp->which = Z_RecordComp_simple;