1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <libsmbclient.h> void create_and_destroy_context (void) { SMBCCTX *ctx; ctx = smbc_new_context (); smbc_init_context (ctx); smbc_free_context (ctx, 1); } int main (int argc, char **argv) { create_and_destroy_context (); create_and_destroy_context (); return 0; }