]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix speed, use OPENSSL_free instead of free 17156/head
authorChenglong Zhang <auvkone@gmail.com>
Thu, 25 Nov 2021 08:21:06 +0000 (16:21 +0800)
committerPauli <ppzgs1@gmail.com>
Sat, 27 Nov 2021 06:52:25 +0000 (16:52 +1000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17132)

apps/speed.c

index 7f2d3165f9911d59d38a40ccfaa171dd4722f546..9eafb2c4487e5d19527af9415d77c8b0f3e07ee2 100644 (file)
@@ -3494,7 +3494,7 @@ static int do_multi(int multi, int size_num)
             close(fd[1]);
             mr = 1;
             usertime = 0;
-            free(fds);
+            OPENSSL_free(fds);
             return 0;
         }
         printf("Forked child %d\n", n);
@@ -3607,7 +3607,7 @@ static int do_multi(int multi, int size_num)
 
         fclose(f);
     }
-    free(fds);
+    OPENSSL_free(fds);
     return 1;
 }
 #endif