Changeset 1737

Show
Ignore:
Timestamp:
2006-01-03 18:54:10 (3 years ago)
Author:
ctford
Message:

Now uses Zend's pemalloc() rather than plain malloc(). This allows PHP to clean up any memory leaks itself at the end of each page request.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • phpannodex/trunk/src/phpanx_write.c

    r1719 r1737  
    132132        int bytes_written, buffer_length; 
    133133        zval *anx_resource, *raw_data; 
    134         static unsigned char* buffer; 
     134        unsigned char* buffer; 
    135135 
    136136        /* Process arguments */ 
     
    142142                LE_ANX_HANDLE_NAME, le_anx_handle); 
    143143 
    144         buffer = malloc( sizeof(char) * n ); 
     144        buffer = pemalloc( n * sizeof(char) , 1 ); 
    145145 
    146146        if( buffer == NULL ) {