nserver

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit c6be4be23671ad506b41d824277454e2d02dbf05
parent ca7b0734119dd26faae442fdf02db172c5cabdac
Author: rsiddharth <s@ricketyspace.net>
Date:   Thu, 28 Nov 2019 02:45:43 -0500

nserver: ncmd_tests.c: Update test_sanitize.

* nserver/tests/ncmd_tests.c (test_sanitize): Cleanup cmd.

Diffstat:
nserver/tests/ncmd_tests.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/nserver/tests/ncmd_tests.c b/nserver/tests/ncmd_tests.c @@ -46,6 +46,10 @@ char *test_sanitize() mu_assert(strlen(cmd) == c_cmd_sz - 20, "sanitize failed"); mu_assert(strcmp(cmd, "/create api/bacon") == 0, "sanitize failed"); + + // Cleanup. + free(cmd); + return NULL; }