Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
93756ed6
Commit
93756ed6
authored
May 20, 2010
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
g_free is NULL-safe
parent
88bf95fe
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
agent/conncheck.c
agent/conncheck.c
+1
-3
agent/discovery.c
agent/discovery.c
+4
-8
No files found.
agent/conncheck.c
View file @
93756ed6
...
...
@@ -2655,8 +2655,6 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream,
}
}
if
(
validater_data
.
password
)
g_free
(
validater_data
.
password
);
if
(
valid
==
STUN_VALIDATION_NOT_STUN
||
...
...
agent/discovery.c
View file @
93756ed6
...
...
@@ -407,9 +407,7 @@ void priv_generate_candidate_credentials (NiceAgent *agent,
guchar
username
[
32
];
guchar
password
[
16
];
if
(
candidate
->
username
)
g_free
(
candidate
->
username
);
if
(
candidate
->
password
)
g_free
(
candidate
->
password
);
nice_rng_generate_bytes
(
agent
->
rng
,
32
,
(
gchar
*
)
username
);
...
...
@@ -421,9 +419,7 @@ void priv_generate_candidate_credentials (NiceAgent *agent,
}
else
if
(
agent
->
compatibility
==
NICE_COMPATIBILITY_GOOGLE
)
{
gchar
username
[
16
];
if
(
candidate
->
username
)
g_free
(
candidate
->
username
);
if
(
candidate
->
password
)
g_free
(
candidate
->
password
);
candidate
->
password
=
NULL
;
...
...
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