Print this page
10076 make usr/src/test smatch clean

@@ -74,13 +74,15 @@
 
         if (op == NULL)
                 return (NULL);
 
         while ((fd = open(CRYPTO_DEVICE, O_RDWR)) < 0) {
-                if (errno != EINTR)
+                if (errno != EINTR) {
+                        free(op);
                         return (NULL);
         }
+        }
 
         op->in = (char *)arg->in;
         op->out = (char *)arg->out;
         op->key = (char *)arg->key;
         op->param = (char *)arg->param;