1
0
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:
Shuai Lin
2016-06-28 12:16:54 +08:00
parent 53a1663d0d
commit 112a2565e6
3 changed files with 19 additions and 6 deletions

View File

@@ -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);