summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 70f2bd7)
raw | patch | inline | side by side (parent: 70f2bd7)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 29 Apr 2014 17:47:18 +0000 (19:47 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 29 Apr 2014 17:47:18 +0000 (19:47 +0200) |
src/client/sock.c | patch | blob | history |
diff --git a/src/client/sock.c b/src/client/sock.c
index 6337ee6bf8cd8bf71611a42469b55527b7b84ff8..805dc1d1ce5350da8d1aaced43d9bce53df1d9cd 100644 (file)
--- a/src/client/sock.c
+++ b/src/client/sock.c
buf = sdb_strbuf_create(64);
rstatus = 0;
status = sdb_client_recv(client, &rstatus, buf);
- if ((status > 0) && (rstatus == CONNECTION_OK))
+ if ((status > 0) && (rstatus == CONNECTION_OK)) {
+ sdb_strbuf_destroy(buf);
return 0;
+ }
if (status < 0) {
char errbuf[1024];