projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe4eacf
)
screenshooter: Free allocated memory where missing from some return paths
author
Rob Bradford
<rob@linux.intel.com>
Thu, 10 Jan 2013 19:48:52 +0000
(19:48 +0000)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 10 Jan 2013 21:06:51 +0000
(16:06 -0500)
src/screenshooter.c
patch
|
blob
|
history
diff --git
a/src/screenshooter.c
b/src/screenshooter.c
index
4f6599f
..
c8da376
100644
(file)
--- a/
src/screenshooter.c
+++ b/
src/screenshooter.c
@@
-417,6
+417,7
@@
weston_recorder_create(struct weston_output *output, const char *filename)
break;
default:
weston_log("unknown recorder format\n");
+ free(recorder);
return;
}
@@
-425,6
+426,7
@@
weston_recorder_create(struct weston_output *output, const char *filename)
if (recorder->fd < 0) {
weston_log("problem opening output file %s: %m\n", filename);
+ free(recorder);
return;
}