summaryrefslogtreecommitdiffstats
path: root/source4/lib/messaging/messaging.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-07-17 14:54:32 +0000
committerVolker Lendecke <vl@samba.org>2014-07-21 18:00:10 +0200
commit53d1bbd20d252b7b759f6a5feb43a0f94b824437 (patch)
treef3511fdf6841353d8369d8eafbdeee4b152ef095 /source4/lib/messaging/messaging.c
parentfe79d759dafef12af26da0a866969100c4aa065b (diff)
downloadsamba-53d1bbd20d252b7b759f6a5feb43a0f94b824437.tar.gz
samba-53d1bbd20d252b7b759f6a5feb43a0f94b824437.tar.xz
samba-53d1bbd20d252b7b759f6a5feb43a0f94b824437.zip
messaging4: Fix a memleak in an error path
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/lib/messaging/messaging.c')
-rw-r--r--source4/lib/messaging/messaging.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c
index 7c05e5291d..00cff1210d 100644
--- a/source4/lib/messaging/messaging.c
+++ b/source4/lib/messaging/messaging.c
@@ -967,6 +967,7 @@ struct server_id *irpc_servers_byname(struct imessaging_context *msg_ctx,
count = rec.dsize / sizeof(struct server_id);
ret = talloc_array(mem_ctx, struct server_id, count+1);
if (ret == NULL) {
+ free(rec.dptr);
return NULL;
}
for (i=0;i<count;i++) {