Change-Id: Icc17a110af79c93197cdcc97933ec2f033db9f96
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
int result = dump_cb(dump_data->fd, dump_data->argc, dump_data->argv);
close(dump_data->fd);
+ if (dump_data->argv)
+ free(dump_data->argv);
free(dump_data);
g_task_return_int(task, result);
}
}
dump_cb = NULL;
- service_name = NULL;
+
+ if (service_name) {
+ free(service_name);
+ service_name = NULL;
+ }
return dbus_close() ? TIZEN_ERROR_NONE : TIZEN_ERROR_IO_ERROR;
}