Fixed Svace issues 66/68266/1 accepted/tizen/common/20160504.125807 accepted/tizen/ivi/20160503.094433 accepted/tizen/mobile/20160503.094419 submit/tizen/20160503.072134
authorkj7.sung <kj7.sung@samsung.com>
Tue, 3 May 2016 07:19:09 +0000 (16:19 +0900)
committerkj7.sung <kj7.sung@samsung.com>
Tue, 3 May 2016 07:19:09 +0000 (16:19 +0900)
Change-Id: I0b34b7d7cde872a84243b7599166d59851593f93
Signed-off-by: kj7.sung <kj7.sung@samsung.com>
module/module_geofence_server.c

index fc1783f..0a1cc92 100644 (file)
@@ -347,9 +347,11 @@ EXPORT_API int get_places(void *handle, int *place_amount, int **place_ids, plac
                index++;
                g_variant_iter_free(iter_row);
        }
-       g_variant_iter_free(iter);
-       *params = (place_s *)p;
 
+       if (iter != NULL)
+               g_variant_iter_free(iter);
+
+       *params = (place_s *)p;
        *place_ids = place_id_array;
 
        return GEOFENCE_MANAGER_ERROR_NONE;