diff -Nru nfs-utils-1.3.2/support/export/client.c src/support/export/client.c
--- nfs-utils-1.3.2/support/export/client.c	2015-01-30 21:42:15.000000000 +0100
+++ src/support/export/client.c	2019-04-12 17:53:58.851987516 +0200
@@ -309,7 +309,8 @@
 		init_addrlist(clp, ai);
 
 out:
-	freeaddrinfo(ai);
+	if (ai)
+		freeaddrinfo(ai);
 	return clp;
 }
 
diff -Nru nfs-utils-1.3.2/utils/mountd/cache.c src/utils/mountd/cache.c
--- nfs-utils-1.3.2/utils/mountd/cache.c	2015-01-30 21:42:15.000000000 +0100
+++ src/utils/mountd/cache.c	2019-04-12 17:53:54.179989498 +0200
@@ -833,7 +833,8 @@
 out:
 	if (found_path)
 		free(found_path);
-	freeaddrinfo(ai);
+	if (ai)
+		freeaddrinfo(ai);
 	free(dom);
 	xlog(D_CALL, "nfsd_fh: found %p path %s", found, found ? found->e_path : NULL);
 }
@@ -1343,7 +1344,7 @@
 	xlog(D_CALL, "nfsd_export: found %p path %s", found, path ? path : NULL);
 	if (dom) free(dom);
 	if (path) free(path);
-	freeaddrinfo(ai);
+	if (ai) freeaddrinfo(ai);
 }
 
 
