X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=afs.c;h=00143799c1c729cfd6fb744a204b46a76e2fee3e;hb=42f69f545fad18480d728bb6f25273976a0c01e0;hp=bad8b8dcf94a2078e764720f415790a64a260680;hpb=b8ecd28c263ff39366a47fe9f7a5785bd43e89ab;p=paraslash.git diff --git a/afs.c b/afs.c index bad8b8dc..00143799 100644 --- a/afs.c +++ b/afs.c @@ -638,16 +638,18 @@ static int setup_command_socket_or_die(void) return socket_fd; } +static char *database_dir; + static void close_afs_tables(void) { int i; PARA_NOTICE_LOG("closing afs_tables\n"); for (i = 0; i < NUM_AFS_TABLES; i++) afs_tables[i].close(); + free(database_dir); + database_dir = NULL; } -static char *database_dir; - static void get_database_dir(void) { if (!database_dir) { @@ -1022,6 +1024,7 @@ static int com_init_callback(struct afs_callback_arg *aca) int i, ret; close_afs_tables(); + get_database_dir(); for (i = 0; i < NUM_AFS_TABLES; i++) { struct afs_table *t = &afs_tables[i];