fix pointer indirection (and thus leak)

This commit is contained in:
Wez Furlong 2005-02-07 00:04:20 +00:00
parent 7279fe8ab0
commit af162668e5

View file

@ -243,7 +243,7 @@ static int pgsql_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned
tmp_ptr = PQunescapeBytea(*ptr, &tmp_len);
*ptr = estrndup(tmp_ptr, tmp_len);
*len = tmp_len;
caller_frees = 1;
*caller_frees = 1;
free(tmp_ptr);
break;
}