1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r16595: Klocwork #2067. Fix possible memleak on error exit.

Jeremy.
This commit is contained in:
Jeremy Allison 2006-06-28 01:56:41 +00:00 committed by Gerald (Jerry) Carter
parent 720a917205
commit 1d21a3dec9

View File

@ -2402,6 +2402,9 @@ void sprintf_append(TALLOC_CTX *mem_ctx, char **string, ssize_t *len,
error:
*len = -1;
if (mem_ctx == NULL) {
SAFE_FREE(*string);
}
*string = NULL;
}