]> granicus.if.org Git - graphviz/commitdiff
remove unnecessary not-null guard in Operator_matmul_delete
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Jun 2021 23:09:17 +0000 (16:09 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 17 Jul 2021 17:45:45 +0000 (10:45 -0700)
It is well-defined to free null.

lib/sfdpgen/sparse_solve.c

index 09949fe2e48fe00104e5d2c3d72f765d9b2ed116..49bcd21d48dabf2fb5ea9f7e7e0f3db25f40f828 100644 (file)
@@ -75,7 +75,7 @@ static Operator Operator_matmul_new(SparseMatrix A){
 
 
 static void Operator_matmul_delete(Operator o){
-  if (o) FREE(o);  
+  FREE(o);
 }