Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot DNS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
23
Issues
23
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Knot projects
Knot DNS
Commits
b795e129
Commit
b795e129
authored
Apr 17, 2015
by
Daniel Salzman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
knot1to2: remove temporary file if successfully reformatted
parent
64fccc1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/utils/knot1to2/main.c
src/utils/knot1to2/main.c
+5
-1
No files found.
src/utils/knot1to2/main.c
View file @
b795e129
...
...
@@ -237,10 +237,14 @@ int main(int argc, char **argv)
// Reformat converted file.
ret
=
reformat
(
file_out
,
file_tmp
,
path
);
free
(
file_tmp
);
if
(
ret
!=
0
)
{
free
(
file_tmp
);
return
EXIT_FAILURE
;
}
// Remove temporary file if successfully reformatted.
remove
(
file_tmp
);
free
(
file_tmp
);
}
return
EXIT_SUCCESS
;
...
...
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