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

Fix memory leak. secrets_fetch allocates memory.

Volker
(This used to be commit 2ec8d1ff88d3984a317a4a53ca3a299e8a68a9d7)
This commit is contained in:
Volker Lendecke 2003-06-21 14:28:18 +00:00
parent 668a9af94e
commit cc59bbfdea

View File

@ -453,6 +453,7 @@ char *secrets_fetch_machine_password(const char *domain,
last_set_time = secrets_fetch(key, &size);
if (last_set_time) {
*pass_last_set_time = IVAL(last_set_time,0);
SAFE_FREE(last_set_time);
} else {
*pass_last_set_time = 0;
}
@ -467,6 +468,7 @@ char *secrets_fetch_machine_password(const char *domain,
channel_type = secrets_fetch(key, &size);
if (channel_type) {
*channel = IVAL(channel_type,0);
SAFE_FREE(channel_type);
} else {
*channel = get_default_sec_channel();
}