Commit 091892c8 authored by Michael Smith's avatar Michael Smith

Forgot to commit this one yesterday: add a default case to prevent memory leaks

in any potential caller calling this with the wrong args.

svn path=/icecast/trunk/icecast/; revision=10989
parent 14e0cfcd
...@@ -812,6 +812,8 @@ static void add_yp_info (ypdata_t *yp, void *info, int type) ...@@ -812,6 +812,8 @@ static void add_yp_info (ypdata_t *yp, void *info, int type)
free (yp->subtype); free (yp->subtype);
yp->subtype = escaped; yp->subtype = escaped;
break; break;
default:
free (escaped);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment