mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-09-01 12:56:32 +00:00
Fixed memory leaks.
This commit is contained in:
@@ -388,6 +388,8 @@ searpc_client_generic_callback (char *retstr, size_t len,
|
||||
if (result) g_object_unref ((GObject*)result);
|
||||
} else if (strcmp(data->ret_type, "objlist") == 0) {
|
||||
clean_objlist ((GList *)result);
|
||||
} else if (strcmp(data->ret_type, "json") == 0) {
|
||||
json_decref ((json_t *)result);
|
||||
}
|
||||
}
|
||||
g_free (data);
|
||||
|
Reference in New Issue
Block a user