tidy up: delete value after use
diff --git a/tools/funclatency b/tools/funclatency
index 7ed3e1b..8ff020e 100755
--- a/tools/funclatency
+++ b/tools/funclatency
@@ -86,8 +86,8 @@
 	if (tsp == 0) {
 		return 0; 	// missed start
 	}
-	start.delete(&pid);
 	delta = bpf_ktime_get_ns() - *tsp;
+	start.delete(&pid);
 	FACTOR
 
 	// store as histogram