Commit 2d218c92 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

ntdll: Fix some memory leaks (Valgrind).

parent 40842007
......@@ -912,7 +912,7 @@ static void rebuild_argv(void)
*/
static void prepend_argv( const char **args, int count )
{
char **new_argv = malloc( (main_argc + count) * sizeof(*new_argv) );
char **new_argv;
char *p, *end;
BOOL write_strings = FALSE;
int i, total = 0, new_argc = main_argc + count - 1;
......
......@@ -3298,7 +3298,12 @@ static NTSTATUS nt_to_unix_file_name_no_root( const UNICODE_STRING *nameW, char
/* check if prefix exists (except for DOS drives to avoid extra stat calls) */
if (wcschr( prefix, '/' )) return STATUS_OBJECT_PATH_NOT_FOUND;
if (wcschr( prefix, '/' ))
{
free( unix_name );
return STATUS_OBJECT_PATH_NOT_FOUND;
}
if (prefix_len != 2 || prefix[1] != ':')
{
unix_name[pos] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment