summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkj7.sung <kj7.sung@samsung.com>2016-05-03 16:19:09 +0900
committerkj7.sung <kj7.sung@samsung.com>2016-05-03 16:19:09 +0900
commit2bc3d1996b02fe348828c70f219c29b871a8149f (patch)
tree5a79d4d4d6b139fcfbf547321bab64c33efb3575
parente9c55fcffb33a75891cb0e854111ef6e0f4d93f4 (diff)
downloadgeofence-server-2bc3d1996b02fe348828c70f219c29b871a8149f.tar.gz
geofence-server-2bc3d1996b02fe348828c70f219c29b871a8149f.tar.bz2
geofence-server-2bc3d1996b02fe348828c70f219c29b871a8149f.zip
Change-Id: I0b34b7d7cde872a84243b7599166d59851593f93 Signed-off-by: kj7.sung <kj7.sung@samsung.com>
-rw-r--r--module/module_geofence_server.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/module_geofence_server.c b/module/module_geofence_server.c
index fc1783f..0a1cc92 100644
--- a/module/module_geofence_server.c
+++ b/module/module_geofence_server.c
@@ -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;