]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - vss.c
recv_common: fix memory leak and invalid free in error path
[paraslash.git] / vss.c
diff --git a/vss.c b/vss.c
index f9e2d6c2aef98a29d1bc0aecc1680b22851e7e00..4a395593f3aa1a6a5038b3d3c23330c6b0ea5610 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -82,6 +82,8 @@ static struct audio_format_handler afl[] = {
                .name = NULL,
        }
 };
+
+/** iterate over each supported audio format */
 #define FOR_EACH_AUDIO_FORMAT(i) for (i = 0; afl[i].name; i++)
 
 /**
@@ -406,6 +408,14 @@ char *vss_get_header(int *header_len)
                return NULL;
        return afl[mmd->audio_format].get_header_info(header_len);
 }
+
+/**
+ * get the list of all supported audio formats
+ *
+ * \return a space separated list of all supported audio formats
+ * It is not allocated at runtime, i.e. there is no need to free
+ * the returned string in the caller.
+ */
 const char *supported_audio_formats(void)
 {
        return SUPPORTED_AUDIO_FORMATS;