diff options
author | Volker Lendecke <vl@samba.org> | 2014-07-17 14:54:32 +0000 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-07-21 18:00:10 +0200 |
commit | 53d1bbd20d252b7b759f6a5feb43a0f94b824437 (patch) | |
tree | f3511fdf6841353d8369d8eafbdeee4b152ef095 /source4/lib/messaging/messaging.c | |
parent | fe79d759dafef12af26da0a866969100c4aa065b (diff) | |
download | samba-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.c | 1 |
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++) { |