Commented out the 'free_multi' function. It uses a bad varargs
mechanism that is not guaranteed to work correctly.
This commit is contained in:
parent
62fde1b889
commit
e3eba773f1
@ -155,6 +155,7 @@ void *hypre_mymalloc(int nbytes, char *msg)
|
||||
/*************************************************************************
|
||||
* This function is my wrapper around free, allows multiple pointers
|
||||
**************************************************************************/
|
||||
#if 0
|
||||
void hypre_free_multi(void *ptr1,...)
|
||||
{
|
||||
va_list plist;
|
||||
@ -174,7 +175,8 @@ void hypre_free_multi(void *ptr1,...)
|
||||
|
||||
va_end(plist);
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/*************************************************************************
|
||||
* The following function copies an int (int) array
|
||||
|
||||
@ -155,6 +155,7 @@ void *hypre_mymalloc(int nbytes, char *msg)
|
||||
/*************************************************************************
|
||||
* This function is my wrapper around free, allows multiple pointers
|
||||
**************************************************************************/
|
||||
#if 0
|
||||
void hypre_free_multi(void *ptr1,...)
|
||||
{
|
||||
va_list plist;
|
||||
@ -174,7 +175,8 @@ void hypre_free_multi(void *ptr1,...)
|
||||
|
||||
va_end(plist);
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/*************************************************************************
|
||||
* The following function copies an int (int) array
|
||||
|
||||
Loading…
Reference in New Issue
Block a user