projects
/
libsigrokdecode.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29dad0a
)
srd: srd_exit(): Set pd_list to NULL after freeing.
author
Uwe Hermann
<uwe@hermann-uwe.de>
Tue, 20 Mar 2012 17:02:45 +0000
(18:02 +0100)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
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
patch
|
blob
|
history
diff --git
a/controller.c
b/controller.c
index 4ba4de1458bc562e89b38551b79209c3e44c4334..565bc0ae19afeb665895770c909cc23e654a47a2 100644
(file)
--- 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();