mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Fix memory leak in vio handle test.
This commit is contained in:
parent
8fb079ae60
commit
63dddf8f78
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user