diff options
author | Stefan Kost <ensonic@users.sf.net> | 2010-11-29 15:51:08 +0200 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2010-12-05 14:24:43 -0800 |
commit | 129228e0e84590358525584a29d1ef24265f50fa (patch) | |
tree | 15d4d1bb79b1a89f9801a421aa4b51a41ad42746 /orc/orccodemem.c | |
parent | 59120ddbd1fad26894c60955ac56cf80feda2fb7 (diff) | |
download | orc-129228e0e84590358525584a29d1ef24265f50fa.tar.gz |
orccodemem: free 'filename' in case of error as well
Diffstat (limited to 'orc/orccodemem.c')
-rw-r--r-- | orc/orccodemem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/orc/orccodemem.c b/orc/orccodemem.c index eee7f2f..c8f1478 100644 --- 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) { |