summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Jacquin (Beber) <beber@setibzh.com>2006-02-02 00:08:19 +0100
committerBertrand Jacquin (Beber) <beber@setibzh.com>2006-02-02 00:08:19 +0100
commitf9405c2f7d56d85b68e59ed2b180c9b8d260c05b (patch)
treeb9b2fd823c7904ef2665ee4fc294f1be4f1395e0
parentb15ed6c73bfe02e9966b2ed8859794c39dc44bfb (diff)
when free a pointeur, put it to NULL
This avoing segv
-rw-r--r--src/espik.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/espik.c b/src/espik.c
index b851fb0..5514ce7 100644
--- a/src/espik.c
+++ b/src/espik.c
@@ -34,6 +34,7 @@ static void espik_destroy_ptr(void *ptr)
34 { 34 {
35 espik_debug_print("Freeing data..."); 35 espik_debug_print("Freeing data...");
36 free (ptr); 36 free (ptr);
37 ptr = NULL;
37 } 38 }
38} 39}
39 40