Fix memory leak
authorhyun lee <hyunn.lee@samsung.com>
Fri, 22 Aug 2014 05:46:52 +0000 (14:46 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Mon, 25 Aug 2014 08:49:59 +0000 (17:49 +0900)
Change-Id: I85e2350afef384a34e37298f5ca2fd11c634bf67
Signed-off-by: hyun lee <hyunn.lee@samsung.com>
lib/src/icon.c

index 4d5eb34..1825df5 100755 (executable)
@@ -304,6 +304,7 @@ static inline int update_block(struct block *block, const char *data, const char
                _option = strdup(option);
                if (!_option) {
                        ErrPrint("Heap: %s\n", strerror(errno));
+                       free(_data);
                        return SHORTCUT_ERROR_OUT_OF_MEMORY;
                }
        }