From: Uwe Hermann Date: Tue, 20 Mar 2012 17:02:45 +0000 (+0100) Subject: srd: srd_exit(): Set pd_list to NULL after freeing. X-Git-Tag: libsigrokdecode-0.1.0~28 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=96c52595ac5cdf7594a639af7ef682411917f52a srd: srd_exit(): Set pd_list to NULL after freeing. This will ensure that any subsequent checks for pd_list == NULL work properly. --- diff --git a/controller.c b/controller.c index 4ba4de1..565bc0a 100644 --- a/controller.c +++ b/controller.c @@ -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();