diff options
author | Jeremy Allison <jra@samba.org> | 2003-04-16 08:46:36 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-04-16 08:46:36 +0000 |
commit | 161017758ebe376d56e21633d840e18b14a4558c (patch) | |
tree | 37a43fd28566c3b32e4803fc4e83a34701ade730 | |
parent | be67c109866530d6fe329a0b797c0647c7aceb56 (diff) | |
download | samba-161017758ebe376d56e21633d840e18b14a4558c.tar.gz samba-161017758ebe376d56e21633d840e18b14a4558c.tar.bz2 samba-161017758ebe376d56e21633d840e18b14a4558c.zip |
Fix mem leak. Spotted by tpot (thanks Tim).
Jeremy.
(This used to be commit adeac265a05be90444d4651f36f2db2bd2f8e8e4)
-rw-r--r-- | source3/printing/printing.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 79cab3d9fa..add690fb8b 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -889,6 +889,7 @@ static void store_queue_struct(struct tdb_print_db *pdb, struct traverse_struct key.dptr = "INFO/linear_queue_array"; key.dsize = strlen(key.dptr); tdb_store(pdb->tdb, key, data, TDB_REPLACE); + SAFE_FREE(data.dptr); return; } |