diff options
author | Bertrand Jacquin (Beber) <beber@setibzh.com> | 2006-02-02 00:08:19 +0100 |
---|---|---|
committer | Bertrand Jacquin (Beber) <beber@setibzh.com> | 2006-02-02 00:08:19 +0100 |
commit | f9405c2f7d56d85b68e59ed2b180c9b8d260c05b (patch) | |
tree | b9b2fd823c7904ef2665ee4fc294f1be4f1395e0 | |
parent | Get commit id when compiling (diff) | |
download | espik-f9405c2f7d56d85b68e59ed2b180c9b8d260c05b.tar.xz |
when free a pointeur, put it to NULL
This avoing segv
-rw-r--r-- | src/espik.c | 1 |
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) { espik_debug_print("Freeing data..."); free (ptr); + ptr = NULL; } } |