mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
lib: Fix CID 1034838 Resource leak
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
This commit is contained in:
parent
b3bbc4f6a7
commit
bd470af1df
@ -272,6 +272,7 @@ static int test_strndup(void)
|
||||
x = strndup("bla", 10);
|
||||
if (strcmp(x, "bla") != 0) {
|
||||
printf("failure: strndup [\ninvalid\n]\n");
|
||||
free(x);
|
||||
return false;
|
||||
}
|
||||
free(x);
|
||||
|
Loading…
x
Reference in New Issue
Block a user