Fix prevent issue
authorSung-jae Park <nicesj.park@samsung.com>
Wed, 29 May 2013 06:31:05 +0000 (15:31 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Wed, 29 May 2013 06:32:30 +0000 (15:32 +0900)
[model] Redwood
[binary_type] AP
[customer] Docomo/Orange/Open
[issue#] CID-53217, 53218, 54063
[problem] Dereference after NULL, Resource Leak(file pointer)
[cause] Newly added feature has a bug.
[solution] Fix them
[team] HomeTF
[request]
[horizontal_expansion]

Change-Id: I068939d91c7e4f8cf63dc482d63fd5041a9ccf38

icon_src/script_handler.c
packaging/com.samsung.data-provider-slave.spec

index 270dab4..b5a0063 100644 (file)
@@ -813,11 +813,11 @@ static inline void consuming_parsed_block(Evas_Object *edje, int lineno, struct
                break;
        }
 
-       delete_block(block);
-
        if (!handlers[i].type)
                ErrPrint("%d: Unknown block type: %s\n", lineno, block->type);
 
+       delete_block(block);
+
        return;
 }
 
@@ -877,6 +877,7 @@ HAPI int script_handler_parse_desc(Evas_Object *edje, const char *descfile)
        info = malloc(sizeof(*info));
        if (!info) {
                ErrPrint("Heap: %s\n", strerror(errno));
+               fclose(fp);
                return LB_STATUS_ERROR_MEMORY;
        }
        info->id = NULL;
index 6f4c6de..d4a4fbe 100644 (file)
@@ -2,7 +2,7 @@
 
 Name: com.samsung.data-provider-slave
 Summary: Plugin type livebox service provider.
-Version: 0.11.4
+Version: 0.11.5
 Release: 1
 Group: HomeTF/Livebox
 License: Flora License