Browse Source

* free memory for db handled on close

master
Alex 'AdUser' Z 8 years ago
parent
commit
757f2e48e5
  1. 2
      src/database.c

2
src/database.c

@ -142,6 +142,8 @@ simdb_close(simdb_t *db) {
if (db->fd >= 0) if (db->fd >= 0)
close(db->fd); close(db->fd);
FREE(db);
} }
const char * const char *

Loading…
Cancel
Save