replace all malloc calls to zap_malloc

git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@862 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Moises Silva
2009-11-15 02:14:50 +00:00
parent c3a1f65be9
commit a2b4369cc2
16 changed files with 39 additions and 38 deletions

View File

@@ -34,6 +34,7 @@
*/
#include <libteletone.h>
#include "openzap.h"
#define SMAX 32767
#define SMIN -32768
@@ -273,7 +274,7 @@ TELETONE_API(int) teletone_mux_tones(teletone_generation_session_t *ts, teletone
static char *my_strdup (const char *s)
{
size_t len = strlen (s) + 1;
void *new = malloc (len);
void *new = zap_malloc(len);
if (new == NULL) {
return NULL;