! * \brief strcodeDestroy() * * \param[out] pstrcode &strcode is set to null after destroying the sarrays * \return void */
| 179 | * \return void |
| 180 | */ |
| 181 | static void |
| 182 | strcodeDestroy(L_STRCODE **pstrcode) |
| 183 | { |
| 184 | L_STRCODE *strcode; |
| 185 | |
| 186 | PROCNAME("strcodeDestroy"); |
| 187 | |
| 188 | if (pstrcode == NULL) { |
| 189 | L_WARNING("ptr address is null!\n", procName); |
| 190 | return; |
| 191 | } |
| 192 | |
| 193 | if ((strcode = *pstrcode) == NULL) |
| 194 | return; |
| 195 | |
| 196 | sarrayDestroy(&strcode->function); |
| 197 | sarrayDestroy(&strcode->data); |
| 198 | sarrayDestroy(&strcode->descr); |
| 199 | LEPT_FREE(strcode); |
| 200 | *pstrcode = NULL; |
| 201 | return; |
| 202 | } |
| 203 | |
| 204 | |
| 205 | /*! |
no test coverage detected