[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scm_must_malloc() vs. malloc()
From: |
Martin Grabmueller |
Subject: |
scm_must_malloc() vs. malloc() |
Date: |
Tue, 13 Mar 2001 08:44:32 +0100 |
Hello list,
is there any reason why fports.c uses malloc() instead of
scm_must_malloc()?
Additionally, gh_data.c contains a lot of code like this:
if (m == 0)
m = (short *) malloc (n * sizeof (short));
for (i = 0; i < n; ++i)
m[i] = SCM_INUM (SCM_VELTS (obj)[i]);
I think these should get replaced by calls to scm_must_malloc too. We
don't want segfaults, do we?
If nobody objects, I will do the necessary changes.
Regards,
'martin
- scm_must_malloc() vs. malloc(),
Martin Grabmueller <=