summaryrefslogtreecommitdiff
path: root/src/lib/eet/eet_lib.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-07-08 11:31:17 +0100
committerChris Michael <cp.michael@samsung.com>2013-07-08 11:31:17 +0100
commitb72e694573985997ad4b83a882b71c6d5cb3cb42 (patch)
tree682c59af83ebf65f63a3922e390450420222c62b /src/lib/eet/eet_lib.c
parent57924e5824b4f38d2cddf4321d1da35798ee423e (diff)
Fix memleak reported by Coverity
NB: Fixes Coverity CID1039261 Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/eet/eet_lib.c')
-rw-r--r--src/lib/eet/eet_lib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/eet/eet_lib.c b/src/lib/eet/eet_lib.c
index b00324f8d0..c9d5cb0373 100644
--- a/src/lib/eet/eet_lib.c
+++ b/src/lib/eet/eet_lib.c
@@ -2128,7 +2128,10 @@ eet_alias_get(Eet_File *ef,
2128 } 2128 }
2129 2129
2130 if (tmp[compr_size - 1] != '\0') 2130 if (tmp[compr_size - 1] != '\0')
2131 goto on_error; 2131 {
2132 free(tmp);
2133 goto on_error;
2134 }
2132 2135
2133 UNLOCK_FILE(ef); 2136 UNLOCK_FILE(ef);
2134 2137