Skip to content

Commit

Permalink
Remove custom free function, it is no longer needed for other code
Browse files Browse the repository at this point in the history
  • Loading branch information
Israel Brewster authored and bendailey committed Dec 1, 2015
1 parent 81e107e commit c707fce
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions lib4d_sql/fourd.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,6 @@ void * fourd_field(FOURD_RESULT *res,unsigned int numCol)
return elmt->pValue;
}

//This function is for use by the python 4d driver, as it appears to be the only
//way to get this block of memory freed. Hopefully that will change.
void _free_field_string(char **value){
free(*value);
}

int fourd_field_to_string(FOURD_RESULT *res,unsigned int numCol,char **value,size_t *len)
{
unsigned int nbCol=res->row_type.nbColumn;
Expand Down
3 changes: 0 additions & 3 deletions lib4d_sql/fourd.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,6 @@ const char * fourd_sqlstate(FOURD *cnx);
void fourd_free(FOURD* cnx);
void fourd_free_statement(FOURD_STATEMENT *state);
void fourd_timeout(FOURD* cnx,int timeout);
//For use by external non-c code that can't access/clear this block of memory
//directly.
void _free_field_string(char **value);

/*function on FOURD_RESULT*/
FOURD_LONG8 fourd_num_rows(FOURD_RESULT *result);
Expand Down

0 comments on commit c707fce

Please sign in to comment.