Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b07408cf
Commit
b07408cf
authored
Jun 28, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Jun 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc: Fixed some small leaks in PO code (Coverity).
parent
a27adc47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
po.c
tools/wmc/po.c
+1
-0
po.c
tools/wrc/po.c
+6
-1
No files found.
tools/wmc/po.c
View file @
b07408cf
...
@@ -325,6 +325,7 @@ static char *convert_msgid_ascii( const lanmsg_t *msg, int error_on_invalid_char
...
@@ -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
);
fprintf
(
stderr
,
"%s:%d: "
,
msg
->
file
,
msg
->
line
);
error
(
"Invalid character %04x in source string
\n
"
,
msg
->
msg
[
i
]
);
error
(
"Invalid character %04x in source string
\n
"
,
msg
->
msg
[
i
]
);
}
}
free
(
buffer
);
return
NULL
;
return
NULL
;
}
}
buffer
[
i
]
=
0
;
buffer
[
i
]
=
0
;
...
...
tools/wrc/po.c
View file @
b07408cf
...
@@ -332,6 +332,7 @@ static char *convert_msgid_ascii( const string_t *str, int error_on_invalid_char
...
@@ -332,6 +332,7 @@ static char *convert_msgid_ascii( const string_t *str, int error_on_invalid_char
print_location
(
&
newstr
->
loc
);
print_location
(
&
newstr
->
loc
);
error
(
"Invalid character %04x in source string
\n
"
,
newstr
->
str
.
wstr
[
i
]
);
error
(
"Invalid character %04x in source string
\n
"
,
newstr
->
str
.
wstr
[
i
]
);
}
}
free
(
buffer
);
free_string
(
newstr
);
free_string
(
newstr
);
return
NULL
;
return
NULL
;
}
}
...
@@ -940,7 +941,11 @@ void add_translations( const char *po_dir )
...
@@ -940,7 +941,11 @@ void add_translations( const char *po_dir )
new_top
=
new_tail
=
NULL
;
new_top
=
new_tail
=
NULL
;
name
=
strmake
(
"%s/LINGUAS"
,
po_dir
);
name
=
strmake
(
"%s/LINGUAS"
,
po_dir
);
if
(
!
(
f
=
fopen
(
name
,
"r"
)))
return
;
if
(
!
(
f
=
fopen
(
name
,
"r"
)))
{
free
(
name
);
return
;
}
free
(
name
);
free
(
name
);
while
(
fgets
(
buffer
,
sizeof
(
buffer
),
f
))
while
(
fgets
(
buffer
,
sizeof
(
buffer
),
f
))
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment