Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
nanahira
Dnsmasq
Commits
38365ff0
Commit
38365ff0
authored
Feb 05, 2013
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Theoretical memory leak fix.
parent
9c4270bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
src/network.c
src/network.c
+10
-7
No files found.
src/network.c
View file @
38365ff0
...
...
@@ -258,14 +258,17 @@ static int iface_allowed(struct irec **irecp, int if_index,
if
(
lo
->
name
&&
strcmp
(
lo
->
name
,
ifr
.
ifr_name
)
==
0
)
break
;
if
(
!
lo
&&
(
lo
=
whine_malloc
(
sizeof
(
struct
iname
)))
&&
(
lo
->
name
=
whine_malloc
(
strlen
(
ifr
.
ifr_name
)
+
1
)))
if
(
!
lo
&&
(
lo
=
whine_malloc
(
sizeof
(
struct
iname
))))
{
strcpy
(
lo
->
name
,
ifr
.
ifr_name
);
lo
->
used
=
1
;
lo
->
next
=
daemon
->
if_names
;
daemon
->
if_names
=
lo
;
if
((
lo
->
name
=
whine_malloc
(
strlen
(
ifr
.
ifr_name
)
+
1
)))
{
strcpy
(
lo
->
name
,
ifr
.
ifr_name
);
lo
->
used
=
1
;
lo
->
next
=
daemon
->
if_names
;
daemon
->
if_names
=
lo
;
}
else
free
(
lo
);
}
}
...
...
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