From 96c52595ac5cdf7594a639af7ef682411917f52a Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 20 Mar 2012 18:02:45 +0100 Subject: srd: srd_exit(): Set pd_list to NULL after freeing. This will ensure that any subsequent checks for pd_list == NULL work properly. --- controller.c | 1 + 1 file changed, 1 insertion(+) 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(); -- cgit v1.2.3-70-g09d2