X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fbio%2Fserv_bio.c;fp=citadel%2Fmodules%2Fbio%2Fserv_bio.c;h=c9d94943f27c63daa50354583199d63148b49a40;hb=8892feee2ba5acef4ff399fc1f019aae2234989a;hp=1c03c480546a6927e4e703f40219ea0d5a205faf;hpb=4f16550e3fe10c62b691b3976ff8b4fccc9dd830;p=citadel.git diff --git a/citadel/modules/bio/serv_bio.c b/citadel/modules/bio/serv_bio.c index 1c03c4805..c9d94943f 100644 --- a/citadel/modules/bio/serv_bio.c +++ b/citadel/modules/bio/serv_bio.c @@ -146,7 +146,6 @@ void import_old_bio_files(void) { DIR *filedir = NULL; struct dirent *filedir_entry; - struct dirent *d; size_t d_namelen; struct ctdluser usbuf; long usernum = 0; @@ -156,14 +155,8 @@ void import_old_bio_files(void) syslog(LOG_DEBUG, "Importing old style bio files into the message base"); - d = (struct dirent *)malloc(offsetof(struct dirent, d_name) + PATH_MAX + 2); - if (d == NULL) { - return; - } - filedir = opendir (ctdl_bio_dir); if (filedir == NULL) { - free(d); return; } while ( (filedir_entry = readdir(filedir)) , (filedir_entry != NULL)) @@ -217,7 +210,6 @@ void import_old_bio_files(void) } } } - free(d); closedir(filedir); rmdir(ctdl_bio_dir); }