reassign 379153 libdb4.4 4.4.20-8
thanks

I used valgrind to narrow down this leak - it can be reproduced by
calling db->upgrade in a loop. I know nothing of berkley db, but this
leak is easy to reproduce with this program:

#include <stdio.h>
#include <stdlib.h>
#include <db.h>

int main(int argc, char *argv[]) {
  int err;
  DB *db;

  if (argc != 2) {
    fprintf(stderr, "Usage: %s <db>\n", argv[0]);
    exit(1);
  }

  err = db_create(&db, NULL, 0);

  if (err) {
    fprintf(stderr, "db_create failed.\n");
    exit(err);
  }

  while(1)
    db->upgrade(db, argv[1], 0);
}


-- 
dann frazier | HP Open Source and Linux Organization


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to