ffserver: use av_freep() for a case that is not clearly at the end of a function
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 28 Oct 2016 17:16:48 +0000 (19:16 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 7 Nov 2016 18:27:40 +0000 (19:27 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffserver.c

index c16f8aa..686c12b 100644 (file)
@@ -1686,7 +1686,7 @@ static int http_parse_request(HTTPContext *c)
                                 memcpy(q, sdp_data, sdp_data_size);
                                 q += sdp_data_size;
                                 *q = '\0';
-                                av_free(sdp_data);
+                                av_freep(&sdp_data);
                             }
                         }
                         break;