1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Fix mem leak. Spotted by tpot (thanks Tim).

Jeremy.
This commit is contained in:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent b6a7704888
commit 03a1f46e34

View File

@ -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;
}