Free an sds string. No operation is performed if 's' is NULL. */
| 163 | |
| 164 | /* Free an sds string. No operation is performed if 's' is NULL. */ |
| 165 | void sdsfree(sds s) { |
| 166 | if (s == NULL) return; |
| 167 | s_free((char*)s-sdsHdrSize(s[-1])); |
| 168 | } |
| 169 | |
| 170 | /* Set the sds string length to the length as obtained with strlen(), so |
| 171 | * considering as content only up to the first null term character. |
no test coverage detected