summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-04-16 08:46:03 +0000
committerJeremy Allison <jra@samba.org>2003-04-16 08:46:03 +0000
commitcf00ce3e87a0d714fb38f709f9635b8a045866e3 (patch)
tree811c46719ce1d80649ef42734d5ad30ec974fdc9 /source3
parentd15cd357c702aaad4093f770d557b61a4e12f3a0 (diff)
downloadsamba-cf00ce3e87a0d714fb38f709f9635b8a045866e3.tar.gz
samba-cf00ce3e87a0d714fb38f709f9635b8a045866e3.tar.bz2
samba-cf00ce3e87a0d714fb38f709f9635b8a045866e3.zip
Fix mem leak. Spotted by tpot (thanks Tim).
Jeremy. (This used to be commit 03a1f46e3448913cc21ed89aafaa22818d4026d0)
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/printing.c1
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;
}