projects
/
platform
/
upstream
/
orc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1530cdd
)
testsuite: fix memory leak in parse test
author
Tim-Philipp Müller
<tim@centricular.com>
Fri, 11 Nov 2022 23:56:06 +0000
(23:56 +0000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Fri, 11 Nov 2022 23:56:06 +0000
(23:56 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/84>
testsuite/test_parse.c
patch
|
blob
|
history
diff --git
a/testsuite/test_parse.c
b/testsuite/test_parse.c
index
1a2ad7c
..
5d1f563
100644
(file)
--- a/
testsuite/test_parse.c
+++ b/
testsuite/test_parse.c
@@
-24,7
+24,7
@@
int error = FALSE;
int
main (int argc, char *argv[])
{
- OrcProgram **programs;
+ OrcProgram **programs
= NULL
;
OrcCompileResult cres;
int n, i;
@@
-48,6
+48,9
@@
main (int argc, char *argv[])
if (error || n == 0)
return 1;
+ free (programs);
+ programs = NULL;
+
/* 2 - windows */
n = orc_parse (txt_win32, &programs);
for (i = 0; i < n; i++) {