[libc] Fix test not including 'free'
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 29 Nov 2022 21:03:00 +0000 (15:03 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 29 Nov 2022 21:03:46 +0000 (15:03 -0600)
Summary:
A previous change removed a transient inclusion of `stdlib.h` from the
`string_utils.h` file which this test depended on. Include it directly
here.

libc/test/integration/src/unistd/getcwd_test.cpp

index 80b45ef..5e52155 100644 (file)
@@ -13,6 +13,7 @@
 #include "utils/IntegrationTest/test.h"
 
 #include <errno.h>
+#include <stdlib.h> // For malloc and free
 
 using __llvm_libc::cpp::string_view;