X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=server%2Fseshigh.c;h=3ebb06fda9cc336c14774b6aaa5fc388cbf0e962;hp=9c89f0d3de20ebfafa3f49d77f415c9eb067d0c0;hb=2004bbd9b3bbce5eb8ecc49520255b3d0bf578b9;hpb=1237873423722c1c5cffad7baa61281902c29c53 diff --git a/server/seshigh.c b/server/seshigh.c index 9c89f0d..3ebb06f 100644 --- a/server/seshigh.c +++ b/server/seshigh.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: seshigh.c,v $ - * Revision 1.52 1995-11-01 12:19:13 quinn + * Revision 1.53 1995-11-01 13:54:58 quinn + * Minor adjustments + * + * Revision 1.52 1995/11/01 12:19:13 quinn * Second attempt to fix same bug. * * Revision 1.50 1995/10/25 16:58:32 quinn @@ -196,7 +199,7 @@ #include #include -#include +#include #include #include #include @@ -235,7 +238,7 @@ association *create_association(IOCHAN channel, COMSTACK link) if (!control_block) control_block = statserv_getcontrol(); - if (!(new = malloc(sizeof(*new)))) + if (!(new = xmalloc(sizeof(*new)))) return 0; new->client_chan = channel; new->client_link = link; @@ -301,12 +304,12 @@ void destroy_association(association *h) if (h->print) odr_destroy(h->print); if (h->input_buffer) - free(h->input_buffer); + xfree(h->input_buffer); if (h->backend) bend_close(h->backend); while (request_deq(&h->incoming)); while (request_deq(&h->outgoing)); - free(h); + xfree(h); } static void do_close(association *a, int reason, char *message) @@ -570,7 +573,7 @@ static int process_response(association *assoc, request *req, Z_APDU *res) } req->response = odr_getbuf(assoc->encode, &req->len_response, &req->size_response); - odr_setbuf(assoc->encode, 0, 0, 0); /* don't free if we abort later */ + odr_setbuf(assoc->encode, 0, 0, 0); /* don'txfree if we abort later */ odr_reset(assoc->encode); if (assoc->print && !z_APDU(assoc->print, &res, 0)) {