mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in testsuite
Michael
This commit is contained in:
@ -57,7 +57,7 @@ static bool test_get_includes(struct smbconf_ctx *ctx)
|
|||||||
ret = true;
|
ret = true;
|
||||||
|
|
||||||
done:
|
done:
|
||||||
TALLOC_FREE(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ static bool test_set_get_includes(struct smbconf_ctx *ctx)
|
|||||||
ret = true;
|
ret = true;
|
||||||
|
|
||||||
done:
|
done:
|
||||||
TALLOC_FREE(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -235,7 +235,7 @@ static bool torture_smbconf_txt(void)
|
|||||||
printf("%s: text backend\n", ret ? "success" : "failure");
|
printf("%s: text backend\n", ret ? "success" : "failure");
|
||||||
|
|
||||||
done:
|
done:
|
||||||
TALLOC_FREE(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -266,7 +266,7 @@ static bool torture_smbconf_reg(void)
|
|||||||
printf("%s: registry backend\n", ret ? "success" : "failure");
|
printf("%s: registry backend\n", ret ? "success" : "failure");
|
||||||
|
|
||||||
done:
|
done:
|
||||||
TALLOC_FREE(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -315,6 +315,6 @@ int main(int argc, const char **argv)
|
|||||||
ret = torture_smbconf();
|
ret = torture_smbconf();
|
||||||
|
|
||||||
done:
|
done:
|
||||||
TALLOC_FREE(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
return ret ? 0 : -1;
|
return ret ? 0 : -1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user