Don't do work in assert()

Standard assert() is a no-op on release builds, and only runs code on
debug builds.  Don't do any actual work in assert().  In this case, it
leaks refs on unexport, causing issues on shutdown or re-export.

Change-Id: I6a3279095427aa54a3093dd018bb6724f8427201
Signed-off-by: Daniel Gryniewicz <>
1 file changed
tree: bd1b6cb3a3cc15dbd9d9c5e3f1d07c568886ed55
  1. contrib/
  2. coverity/
  3. jenkins/
  4. src/
  5. .gitignore
  6. .gitmodules
  7. .gitreview
  8. .mailmap
  9. .travis.yml

Coverity Scan Build Status nfs-ganesha

NFS-Ganesha is an NFSv3,v4,v4.1 fileserver that runs in user mode on most UNIX/Linux systems. It also supports the 9p.2000L protocol.

For more information, consult the project wiki.