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
ed99b324
Commit
ed99b324
authored
Aug 31, 2017
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Free struct vjsn
parent
f20ac342
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
vjsn.c
lib/libvarnishapi/vjsn.c
+1
-1
vjsn.h
lib/libvarnishapi/vjsn.h
+1
-0
vsc.c
lib/libvarnishapi/vsc.c
+2
-6
No files found.
lib/libvarnishapi/vjsn.c
View file @
ed99b324
...
...
@@ -90,7 +90,7 @@ vjsn_val_delete(struct vjsn_val *jsv)
FREE_OBJ
(
jsv
);
}
static
void
void
vjsn_delete
(
struct
vjsn
**
jp
)
{
struct
vjsn
*
js
;
...
...
lib/libvarnishapi/vjsn.h
View file @
ed99b324
...
...
@@ -55,5 +55,6 @@ struct vjsn {
};
struct
vjsn
*
vjsn_parse
(
const
char
*
,
const
char
**
);
void
vjsn_delete
(
struct
vjsn
**
);
void
vjsn_dump
(
const
struct
vjsn
*
js
,
FILE
*
fo
);
struct
vjsn_val
*
vjsn_child
(
const
struct
vjsn_val
*
,
const
char
*
);
lib/libvarnishapi/vsc.c
View file @
ed99b324
...
...
@@ -315,11 +315,7 @@ vsc_iter_fantom(struct vsm *vd, const struct vsm_fantom *fantom,
p
=
(
char
*
)
fantom
->
b
+
8
+
vbe64dec
(
fantom
->
b
);
assert
(
p
<
(
char
*
)
fantom
->
e
);
vj
=
vjsn_parse
(
p
,
&
e
);
if
(
e
!=
NULL
)
{
fprintf
(
stderr
,
"%s
\n
"
,
p
);
fprintf
(
stderr
,
"JSON ERROR %s
\n
"
,
e
);
exit
(
2
);
}
XXXAZ
(
e
);
AN
(
vj
);
vve
=
vjsn_child
(
vj
->
value
,
"elem"
);
AN
(
vve
);
...
...
@@ -328,7 +324,7 @@ vsc_iter_fantom(struct vsm *vd, const struct vsm_fantom *fantom,
if
(
i
)
break
;
}
// XXX: destroy vj
vjsn_delete
(
&
vj
);
return
(
i
);
}
...
...
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