]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/volume.c
Don't delete struct vol when closing volume
[netatalk.git] / 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);
 }
 
 /* ------------------------- */