diff options
author | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-07-15 13:43:35 +0000 |
---|---|---|
committer | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-07-15 13:43:35 +0000 |
commit | 8ce96b1724a208e2ab3162a4d3ed095b5758b996 (patch) | |
tree | 2cce2c313a534f0e0348bf75dbc9035594b7360c /datafiles.c | |
parent | bc5c5e69b92c96cf429fb0de9630256cbe66cac8 (diff) |
BUILD : 1.7.4 (261) BUGS : NOTES : fixed a tiny memleak in the db routine
git-svn-id: svn://svn.anope.org/anope/trunk@261 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@167 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'datafiles.c')
-rw-r--r-- | datafiles.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/datafiles.c b/datafiles.c index cbd031cd8..5a5512e80 100644 --- a/datafiles.c +++ b/datafiles.c @@ -187,6 +187,9 @@ static dbFILE *open_db_write(const char *service, const char *filename, #else ; #endif + /* Then the Lord said unto Moses, thou shalt free what thou hast malloced + * -- codemastr */ + free(f); errno = errno_save; return NULL; } |