1
0
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:
Volker Lendecke 2015-03-08 19:06:38 +00:00
parent b3bbc4f6a7
commit bd470af1df

View File

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