Commit b07408cf authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

wrc: Fixed some small leaks in PO code (Coverity).

parent a27adc47
......@@ -325,6 +325,7 @@ static char *convert_msgid_ascii( const lanmsg_t *msg, int error_on_invalid_char
fprintf( stderr, "%s:%d: ", msg->file, msg->line );
error( "Invalid character %04x in source string\n", msg->msg[i] );
}
free( buffer );
return NULL;
}
buffer[i] = 0;
......
......@@ -332,6 +332,7 @@ static char *convert_msgid_ascii( const string_t *str, int error_on_invalid_char
print_location( &newstr->loc );
error( "Invalid character %04x in source string\n", newstr->str.wstr[i] );
}
free( buffer);
free_string( newstr );
return NULL;
}
......@@ -940,7 +941,11 @@ void add_translations( const char *po_dir )
new_top = new_tail = NULL;
name = strmake( "%s/LINGUAS", po_dir );
if (!(f = fopen( name, "r" ))) return;
if (!(f = fopen( name, "r" )))
{
free( name );
return;
}
free( name );
while (fgets( buffer, sizeof(buffer), f ))
{
......
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