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:
59120dd
)
orccodemem: free 'filename' in case of error as well
author
Stefan Kost
<ensonic@users.sf.net>
Mon, 29 Nov 2010 13:51:08 +0000
(15:51 +0200)
committer
David Schleef
<ds@schleef.org>
Sun, 5 Dec 2010 22:24:43 +0000
(14:24 -0800)
orc/orccodemem.c
patch
|
blob
|
history
diff --git
a/orc/orccodemem.c
b/orc/orccodemem.c
index
eee7f2f
..
c8f1478
100644
(file)
--- a/
orc/orccodemem.c
+++ b/
orc/orccodemem.c
@@
-201,6
+201,7
@@
orc_code_region_allocate_codemem_dual_map (OrcCodeRegion *region,
fd = mkstemp (filename);
if (fd == -1) {
ORC_WARNING ("failed to create temp file");
+ free (filename);
return FALSE;
}
if (force_unlink || !_orc_compiler_flag_debug) {