Skip to content
Snippets Groups Projects
Commit 4b7c32d5 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

freed in case of error

parent 2a0f5cf1
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ int svc_remove(genalloc *tostop,ss_resolve_t *res, char const *src,ssexec_t *inf ...@@ -59,7 +59,7 @@ int svc_remove(genalloc *tostop,ss_resolve_t *res, char const *src,ssexec_t *inf
{ {
if (!stralloc_cats(&dst,SS_SVC)) goto err ; if (!stralloc_cats(&dst,SS_SVC)) goto err ;
} }
else if (!stralloc_cats(&dst,SS_DB SS_SRC)) retstralloc(0,"remove_sv") ; else if (!stralloc_cats(&dst,SS_DB SS_SRC)) goto err ;
if (!stralloc_cats(&dst,"/")) goto err ; if (!stralloc_cats(&dst,"/")) goto err ;
newlen = dst.len ; newlen = dst.len ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment