aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-04-19 01:12:58 -0400
committerrsiddharth <s@ricketyspace.net>2020-04-19 01:12:58 -0400
commit1d47e2921880480c78c72767971b449e71a0b433 (patch)
treeaccd7d8b9e7f0402f04c4bd0415f6d51aba42778
parent436a0beb7f1191f4237732ad60383e5253674c02 (diff)
downloadnserver-1d47e2921880480c78c72767971b449e71a0b433.tar.gz
nserver-1d47e2921880480c78c72767971b449e71a0b433.tar.bz2
nserver-1d47e2921880480c78c72767971b449e71a0b433.tar.xz
nserver-1d47e2921880480c78c72767971b449e71a0b433.zip
protocol.c: Update ssload.
* src/protocol.c (ssload): Cleanup st_str.
-rw-r--r--src/protocol.c3
1 files changed, 3 insertions, 0 deletions
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) {