diff options
-rw-r--r-- | source3/libads/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libads/util.c b/source3/libads/util.c index 68c7aede21e..f387ca60bf7 100644 --- a/source3/libads/util.c +++ b/source3/libads/util.c @@ -166,7 +166,8 @@ struct spn_struct *parse_spn(TALLOC_CTX *ctx, const char *srvprinc) result->serviceclass = talloc_strdup(result, srvprinc); if (result->serviceclass == NULL) { DBG_ERR("Out of memory\n"); - return NULL; + TALLOC_FREE(result); + goto out; } result->port = -1; |