src/cxx_supportlib/vendor-copy/libuv/src/unix/proctitle.c in passenger-5.0.25 vs src/cxx_supportlib/vendor-copy/libuv/src/unix/proctitle.c in passenger-5.0.26

- old
+ new

@@ -53,11 +53,11 @@ assert(process_title.len + 1 == size); /* argv memory should be adjacent. */ /* Add space for the argv pointers. */ size += (argc + 1) * sizeof(char*); - new_argv = malloc(size); + new_argv = uv__malloc(size); if (new_argv == NULL) return argv; args_mem = new_argv; /* Copy over the strings and set up the pointer table. */ @@ -95,8 +95,8 @@ return 0; } UV_DESTRUCTOR(static void free_args_mem(void)) { - free(args_mem); /* Keep valgrind happy. */ + uv__free(args_mem); /* Keep valgrind happy. */ args_mem = NULL; }