]> granicus.if.org Git - php/commitdiff
PQfreemem() is only available in 7.4
authorEdin Kadribasic <edink@php.net>
Wed, 26 May 2004 17:45:03 +0000 (17:45 +0000)
committerEdin Kadribasic <edink@php.net>
Wed, 26 May 2004 17:45:03 +0000 (17:45 +0000)
ext/pdo_pgsql/pgsql_driver.c

index 359f394d61e78074f058e2405667e96daf5c7961..063c34ed61b2c008b9b6690daffb047bd6c7fee7 100644 (file)
@@ -146,7 +146,7 @@ static int pgsql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquote
        (*quoted)[0] = '\'';
        (*quoted)[*quotedlen-1] = '\'';
        (*quoted)[*quotedlen] = '\0';
-       PQfreemem(escaped);
+       free(escaped);
 
        return 1;
 }