diff options
-rw-r--r-- | source3/libsmb/libsmbclient.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c index 7a390a83f2..a18e9910aa 100644 --- a/source3/libsmb/libsmbclient.c +++ b/source3/libsmb/libsmbclient.c @@ -5784,6 +5784,7 @@ smbc_new_context(void) context->internal = SMB_MALLOC_P(struct smbc_internal_data); if (!context->internal) { + SAFE_FREE(context); errno = ENOMEM; return NULL; } |