home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume43 / ddb / patch04 / Patch04
Encoding:
Text File  |  1994-07-11  |  1.3 KB  |  62 lines

  1. *** ../ddb.old/hash.c    Thu Jun  9 11:50:19 1994
  2. --- hash.c    Thu Jun  9 11:51:47 1994
  3. ***************
  4. *** 122,127 ****
  5. --- 122,128 ----
  6.                   oldptr = ptr->next;
  7.                   hashtable[hd].bucket[hashval] = oldptr;
  8.               }
  9. +             free(ptr);
  10.               return &oldptr->data;
  11.           } else {    /* DDB_REPLACE */
  12.               if ((ptr->data.addr = malloc(data->size)) == NULL)
  13. ***************
  14. *** 203,208 ****
  15. --- 204,210 ----
  16.           if (hashtable[hd].bucket[bucket])
  17.               hfree(hashtable[hd].bucket[bucket]);
  18.   
  19. +     free(hashtable[hd].bucket);
  20.       hashtable[hd].used = 0;
  21.   
  22.       return 0;
  23. *** ../ddb.old/patchlevel.h    Thu Jun  9 11:50:19 1994
  24. --- patchlevel.h    Thu Jun  9 12:10:32 1994
  25. ***************
  26. *** 1 ****
  27. ! #define PATCHLEVEL    3
  28. --- 1 ----
  29. ! #define PATCHLEVEL    4
  30. *** ../ddb.old/queue.c    Thu Jun  9 11:50:19 1994
  31. --- queue.c    Thu Jun  9 11:52:31 1994
  32. ***************
  33. *** 99,104 ****
  34. --- 99,105 ----
  35.   {
  36.       QELEM    *qp;
  37.       QELEM    *next;
  38. +     int    dobreak;
  39.   
  40.       if (!validqd(qd))
  41.           return -1;
  42. ***************
  43. *** 107,114 ****
  44.           while (1) {
  45.               free(qp->data.addr);
  46.               next = qp->next;
  47.               free(qp);
  48. !             if (qp == queue[qd].tail)
  49.                   break;
  50.               qp = next;
  51.           }
  52. --- 108,116 ----
  53.           while (1) {
  54.               free(qp->data.addr);
  55.               next = qp->next;
  56. +             dobreak = (qp == queue[qd].tail);
  57.               free(qp);
  58. !             if (dobreak)
  59.                   break;
  60.               qp = next;
  61.           }
  62.