-fix one missing efree
-replace efree/emalloc with erealloc
#include <unistd.h>
#endif
-#ifdef PHP_31
-#include "os/nt/flock.h"
-#else
-#ifdef PHP_WIN32
-#include "win32/flock.h"
-#else
+#ifdef HAVE_SYS_FILE_H
#include <sys/file.h>
#endif
-#endif
#if HAVE_FCNTL_H
#include <fcntl.h>
num = atoi(buf);
if (num > buf_size) {
buf_size+=num;
- buf = emalloc((buf_size+1)*sizeof(char));
+ buf = erealloc(buf, (buf_size+1)*sizeof(char));
}
read(fileno(dbf), buf, num);
value_datum.dptr = buf;
num = atoi(buf);
if (num > buf_size) {
buf_size += num;
- if (buf) efree(buf);
- buf = emalloc((buf_size+1)*sizeof(char));
+ buf = erealloc(buf, (buf_size+1)*sizeof(char));
}
pos = ftell(dbf);