]> arthur.barton.de Git - netatalk.git/commitdiff
Don't delete struct vol when closing volume
authorFrank Lahm <franklahm@googlemail.com>
Wed, 22 Feb 2012 12:54:26 +0000 (13:54 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Wed, 22 Feb 2012 12:54:26 +0000 (13:54 +0100)
etc/afpd/volume.c

index 4cd5fb7cea5969c8fe8485a3d9609c3a654155a9..1adf24af522a22efeda7abdf8e0e40a28b599187 100644 (file)
@@ -919,10 +919,6 @@ void closevol(struct vol *vol)
     if (vol->v_root_postexec) {
         afprun(1, vol->v_root_postexec, NULL);
     }
-
-    volume_free(vol);
-    volume_unlink(vol);
-    free(vol);
 }
 
 /* ------------------------- */