Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
2f4a74f6
Commit
2f4a74f6
authored
Sep 25, 2013
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Free memory before exit in test program
This to silence valgrind errors
parent
054d8e95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vxp_test.c
lib/libvarnishapi/vxp_test.c
+3
-0
No files found.
lib/libvarnishapi/vxp_test.c
View file @
2f4a74f6
...
@@ -30,12 +30,15 @@ main(int argc, char **argv)
...
@@ -30,12 +30,15 @@ main(int argc, char **argv)
if
(
vex
==
NULL
)
{
if
(
vex
==
NULL
)
{
VSB_finish
(
vsb
);
VSB_finish
(
vsb
);
fprintf
(
stderr
,
"Error:
\n
%s"
,
VSB_data
(
vsb
));
fprintf
(
stderr
,
"Error:
\n
%s"
,
VSB_data
(
vsb
));
VSB_delete
(
vsb
);
free
(
s
);
exit
(
1
);
exit
(
1
);
}
}
VSB_delete
(
vsb
);
VSB_delete
(
vsb
);
vex_Free
(
&
vex
);
vex_Free
(
&
vex
);
AZ
(
vex
);
AZ
(
vex
);
free
(
s
);
return
(
0
);
return
(
0
);
}
}
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