X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2Fdmalloc.c;h=cbe190c77bcd3b52540bfc9c561d12c6bea7012e;hp=e8d693fd5ae7a8bcb2e1a843c54792e813ac6db7;hb=b97c5f66c697c58dc6ee56c402da4237236d70ce;hpb=8c0d9ab51d716e170e6185dbfeb9462d91fb1a06 diff --git a/util/dmalloc.c b/util/dmalloc.c index e8d693f..cbe190c 100644 --- a/util/dmalloc.c +++ b/util/dmalloc.c @@ -1,10 +1,16 @@ /* - * Copyright (C) 1994, Index Data I/S - * All rights reserved. + * Copyright (c) 1995, Index Data + * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: dmalloc.c,v $ - * Revision 1.3 1995-05-15 11:56:55 quinn + * Revision 1.5 1995-05-16 08:51:10 quinn + * License, documentation, and memory fixes + * + * Revision 1.4 1995/05/15 13:25:13 quinn + * Fixed memory bug. + * + * Revision 1.3 1995/05/15 11:56:55 quinn * Debuggng & adjustments. * * Revision 1.2 1995/04/10 10:23:50 quinn @@ -75,11 +81,6 @@ void *d_realloc(char *file, int line, char *ptr, int nbytes) file, line, len, nbytes, p, r + 2 * sizeof(long)); memcpy(r, &head, sizeof(long)); memcpy(r + sizeof(long), &nlen, sizeof(long)); - if (r != ptr - 2 * sizeof(long)) - { - memcpy(r + 2 * sizeof(long), ptr, len); - memcpy(ptr - 2 * sizeof(long), &freed, sizeof(long)); - } r += 2 * sizeof(long); memcpy(r + nbytes, &tail, sizeof(long)); return r;