diff options
-rw-r--r-- | src/shared/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index 3a80f264ca..23468b7af6 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -1505,6 +1505,7 @@ int cunescape_length_with_prefix(const char *s, size_t length, const char *prefi continue; } + free(r); return -EINVAL; } @@ -1516,6 +1517,7 @@ int cunescape_length_with_prefix(const char *s, size_t length, const char *prefi continue; } + free(r); return k; } |