X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fdevice.c;h=054c7347f91308f22bb4422cf41e66f6e0910112;hb=2fe6210af6a1e8028967fa267dac9429b7952eef;hp=a331536c733b9c82fff8cede49025e45e30026de;hpb=db156e5409b44bb90a81c1fcd160c2313fc156a0;p=libsigrok.git diff --git a/src/device.c b/src/device.c index a331536c..054c7347 100644 --- a/src/device.c +++ b/src/device.c @@ -230,6 +230,8 @@ SR_PRIV struct sr_dev_inst *sr_dev_inst_new(int index, int status, sdi->vendor = vendor ? g_strdup(vendor) : NULL; sdi->model = model ? g_strdup(model) : NULL; sdi->version = version ? g_strdup(version) : NULL; + sdi->serial_num = NULL; + sdi->connection_id = NULL; sdi->channels = NULL; sdi->channel_groups = NULL; sdi->session = NULL; @@ -262,6 +264,8 @@ SR_PRIV void sr_dev_inst_free(struct sr_dev_inst *sdi) g_free(sdi->vendor); g_free(sdi->model); g_free(sdi->version); + g_free(sdi->serial_num); + g_free(sdi->connection_id); g_free(sdi); }