]> sigrok.org Git - libsigrokdecode.git/commit
instance.c: Fix a memory leak reported by scan-build.
authorUwe Hermann <redacted>
Tue, 15 May 2018 22:13:07 +0000 (00:13 +0200)
committerUwe Hermann <redacted>
Wed, 16 May 2018 10:17:42 +0000 (12:17 +0200)
commit25d3576134e7b57ca169e8e4ebd4e4ce5dcf62dd
treeed38fba935cb41f99462a92bab3ef14a8d5e75bd
parent8ad9a3e48ddf79e08cd48073c953ea665c464005
instance.c: Fix a memory leak reported by scan-build.

  instance.c:280:10: warning: Potential leak of memory pointed to by 'new_channelmap'
                  pdch = g_slist_nth(di->decoder->channels, i)->data;
                         ^~~~~~~~~~~
instance.c