Changeset 71

Show
Ignore:
Timestamp:
07/10/08 00:23:43 (2 months ago)
Author:
scott
Message:

Remove unused variable and fix memory leak

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/sqlite3.c

    r70 r71  
    293293        if (!VCWD_REALPATH(lib_path, fullpath)) { 
    294294                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to load extension at '%s'", lib_path); 
    295                 RETURN_FALSE; 
    296         } 
     295                efree(lib_path); 
     296                RETURN_FALSE; 
     297        } 
     298 
     299        efree(lib_path); 
    297300 
    298301        if (strncmp(fullpath, extension_dir, extension_dir_len) != 0) { 
     
    509512{ 
    510513        php_sqlite3_db *db; 
    511         php_sqlite3_result *result; 
    512514        zval *object = getThis(); 
    513515        char *sql, *errtext = NULL;