Fix memory leak in vio handle test.

This commit is contained in:
Andreas Schneider 2008-04-22 10:46:52 +02:00
parent 8fb079ae60
commit 63dddf8f78

View File

@ -14,7 +14,7 @@ START_TEST (check_csync_vio_handle_new)
number = c_malloc(sizeof(int));
*number = 42;
handle = csync_vio_handle_new(c_strdup("/tmp"), (csync_vio_method_handle_t *) number);
handle = csync_vio_handle_new("/tmp", (csync_vio_method_handle_t *) number);
fail_if(handle == NULL, NULL);
fail_unless(strcmp(handle->uri, "/tmp") == 0, NULL);