Skip to content

Instantly share code, notes, and snippets.

@jlopezr
Created May 19, 2013 00:05
Show Gist options
  • Save jlopezr/5606165 to your computer and use it in GitHub Desktop.
Save jlopezr/5606165 to your computer and use it in GitHub Desktop.
#include <czmq.h>
#include <assert.h>
int main() {
zctx_t* ctx = zctx_new();
void *client = zsocket_new (ctx, ZMQ_PAIR);
assert(client);
zsocket_destroy(ctx, &client);
zctx_destroy(&ctx);
return 0;
}
@jlopezr
Copy link
Author

jlopezr commented May 19, 2013

Stupid error on line 10. zsocket_destroy expects a void* not a void**.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment