]> sigrok.org Git - libsigrokdecode.git/commitdiff
srd: srd_exit(): Set pd_list to NULL after freeing.
authorUwe Hermann <redacted>
Tue, 20 Mar 2012 17:02:45 +0000 (18:02 +0100)
committerUwe Hermann <redacted>
Wed, 21 Mar 2012 22:20:07 +0000 (23:20 +0100)
This will ensure that any subsequent checks for pd_list == NULL work
properly.

controller.c

index 4ba4de1458bc562e89b38551b79209c3e44c4334..565bc0ae19afeb665895770c909cc23e654a47a2 100644 (file)
@@ -121,6 +121,7 @@ SRD_API int srd_exit(void)
 
        srd_decoder_unload_all();
        g_slist_free(pd_list);
+       pd_list = NULL;
 
        /* Py_Finalize() returns void, any finalization errors are ignored. */
        Py_Finalize();