projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45f0f35
)
stats: always free log
author
Luis de Bethencourt
<luisbg@osg.samsung.com>
Tue, 20 Oct 2015 12:46:24 +0000
(13:46 +0100)
committer
Luis de Bethencourt
<luisbg@osg.samsung.com>
Wed, 21 Oct 2015 10:19:14 +0000
(11:19 +0100)
We always want to free the open file log if fopen() succeeded. Independently
of if fgets() succeeds or fails.
CID
1326055
https://bugzilla.gnome.org/show_bug.cgi?id=756864
tools/gst-stats.c
patch
|
blob
|
history
diff --git
a/tools/gst-stats.c
b/tools/gst-stats.c
index 3ee39a5ebf70939ee3fea44bd4f8ba8ca780571f..f5efdda4de1db4990fba4e327ab8e27336fc1c96 100644
(file)
--- a/
tools/gst-stats.c
+++ b/
tools/gst-stats.c
@@
-836,10
+836,10
@@
collect_stats (const gchar * filename)
}
}
}
- fclose (log);
} else {
GST_WARNING ("empty log");
}
+ fclose (log);
}
}