diff options
Diffstat (limited to 'source4/lib/talloc/testsuite.c')
-rw-r--r-- | source4/lib/talloc/testsuite.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/lib/talloc/testsuite.c b/source4/lib/talloc/testsuite.c index 947540d940..7cd6429085 100644 --- a/source4/lib/talloc/testsuite.c +++ b/source4/lib/talloc/testsuite.c @@ -906,6 +906,11 @@ static BOOL test_loop(void) return True; } +static int fail_destructor_str(char *ptr) +{ + return -1; +} + static BOOL test_free_parent_deny_child(void) { char *top = talloc_new(NULL); @@ -918,7 +923,7 @@ static BOOL test_free_parent_deny_child(void) level2 = talloc_strdup(level1, "level2"); level3 = talloc_strdup(level2, "level3"); - talloc_set_destructor(level3, fail_destructor); + talloc_set_destructor(level3, fail_destructor_str); talloc_free(level1); talloc_set_destructor(level3, NULL); |