summaryrefslogtreecommitdiff
path: root/libguile/gc-malloc.c
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-11-17 23:07:10 +0100
committerLudovic Courtès <ludo@gnu.org>2009-11-17 23:42:36 +0100
commitc291b588356f751ec553d3de77996fa75b3a7515 (patch)
treecbd91b88170b7c6c1ef1e9aeb1ea37cc599c66e1 /libguile/gc-malloc.c
parentc84bdaf6b44ce10fd5c549b8425cb57fb299c599 (diff)
downloadguile-c291b588356f751ec553d3de77996fa75b3a7515.tar.gz
Fix stylistic issues revealed by "make syntax-check".
* libguile/gc-malloc.c (scm_must_free): Remove unnecessary `if' before `free ()'. * libguile/stime.c (scm_localtime, scm_mktime): Likewise. * libguile/eval.i.c (ceval): Don't cast the result of alloca(3). * libguile/i18n.c (SCM_STRING_TO_U32_BUF): Likewise. * test-suite/standalone/test-unwind.c: Likewise. * libguile/strings.c (scm_i_deprecated_string_chars): Don't end error message in period.
Diffstat (limited to 'libguile/gc-malloc.c')
-rw-r--r--libguile/gc-malloc.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/libguile/gc-malloc.c b/libguile/gc-malloc.c
index 669f7894b..9f6c3766d 100644
--- a/libguile/gc-malloc.c
+++ b/libguile/gc-malloc.c
@@ -322,13 +322,8 @@ scm_must_free (void *obj)
#ifdef GUILE_DEBUG_MALLOC
scm_malloc_unregister (obj);
#endif
- if (obj)
- free (obj);
- else
- {
- fprintf (stderr,"freeing NULL pointer");
- abort ();
- }
+
+ free (obj);
}
#undef FUNC_NAME