From 1d47e2921880480c78c72767971b449e71a0b433 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 19 Apr 2020 01:12:58 -0400 Subject: protocol.c: Update ssload. * src/protocol.c (ssload): Cleanup st_str. --- src/protocol.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/protocol.c b/src/protocol.c index fb6a33c..292a8d9 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -295,6 +295,9 @@ int ssload(char *from, char *to) Stats *st = Stats_unstringify(st_str); check(st != NULL, "stats unstringify failed"); + // clean up st_str. + free(st_str); + // 5. create Record if needed. int rec_created = 0; if (rec == NULL) { -- cgit v1.2.3