X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=odr%2Fodr.c;h=b44078a004b0fc181880de367c84886d2c4fcf98;hp=cc94ef82936cb9b5c94233db52463537f91797c0;hb=2004bbd9b3bbce5eb8ecc49520255b3d0bf578b9;hpb=1237873423722c1c5cffad7baa61281902c29c53 diff --git a/odr/odr.c b/odr/odr.c index cc94ef8..b44078a 100644 --- a/odr/odr.c +++ b/odr/odr.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: odr.c,v $ - * Revision 1.18 1995-09-29 17:12:22 quinn + * Revision 1.19 1995-11-01 13:54:41 quinn + * Minor adjustments + * + * Revision 1.18 1995/09/29 17:12:22 quinn * Smallish * * Revision 1.17 1995/09/29 17:01:50 quinn @@ -65,7 +68,7 @@ #include #include -#include +#include #include Odr_null *ODR_NULLVAL = "NULL"; /* the presence of a null value */ @@ -109,7 +112,7 @@ ODR odr_createmem(int direction) { struct odr *r; - if (!(r = malloc(sizeof(*r)))) + if (!(r = xmalloc(sizeof(*r)))) return 0; r->direction = direction; r->print = stderr; @@ -143,10 +146,10 @@ void odr_destroy(ODR o) { odr_release_mem(o->mem); if (o->ecb.buf && o->ecb.can_grow) - free(o->ecb.buf); + xfree(o->ecb.buf); if (o->print != stderr) fclose(o->print); - free(o); + xfree(o); } void odr_setbuf(ODR o, char *buf, int len, int can_grow)