| 2920 | } |
| 2921 | |
| 2922 | static void clear_responses(cdb2_hndl_tp *hndl) |
| 2923 | { |
| 2924 | if (hndl->lastresponse) { |
| 2925 | if (hndl->protobuf_used_sysmalloc) |
| 2926 | cdb2__sqlresponse__free_unpacked(hndl->lastresponse, |
| 2927 | &hndl->allocator); |
| 2928 | hndl->protobuf_offset = 0; |
| 2929 | free((void *)hndl->last_buf); |
| 2930 | hndl->last_buf = NULL; |
| 2931 | hndl->lastresponse = NULL; |
| 2932 | } |
| 2933 | |
| 2934 | if (hndl->firstresponse) { |
| 2935 | cdb2__sqlresponse__free_unpacked(hndl->firstresponse, NULL); |
| 2936 | free((void *)hndl->first_buf); |
| 2937 | hndl->first_buf = NULL; |
| 2938 | hndl->firstresponse = NULL; |
| 2939 | } |
| 2940 | } |
| 2941 | |
| 2942 | static int cdb2_effects_request(cdb2_hndl_tp *hndl) |
| 2943 | { |
no test coverage detected