diff options
author | kj7.sung <kj7.sung@samsung.com> | 2016-05-03 16:19:09 +0900 |
---|---|---|
committer | kj7.sung <kj7.sung@samsung.com> | 2016-05-03 16:19:09 +0900 |
commit | 2bc3d1996b02fe348828c70f219c29b871a8149f (patch) | |
tree | 5a79d4d4d6b139fcfbf547321bab64c33efb3575 | |
parent | e9c55fcffb33a75891cb0e854111ef6e0f4d93f4 (diff) | |
download | geofence-server-2bc3d1996b02fe348828c70f219c29b871a8149f.tar.gz geofence-server-2bc3d1996b02fe348828c70f219c29b871a8149f.tar.bz2 geofence-server-2bc3d1996b02fe348828c70f219c29b871a8149f.zip |
Fixed Svace issuessubmit/tizen/20160503.072134accepted/tizen/mobile/20160503.094419accepted/tizen/ivi/20160503.094433accepted/tizen/common/20160504.125807
Change-Id: I0b34b7d7cde872a84243b7599166d59851593f93
Signed-off-by: kj7.sung <kj7.sung@samsung.com>
-rw-r--r-- | module/module_geofence_server.c | 6 |
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; |