use av_freep() for a case that isnt clearly at the end
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 28 Oct 2016 17:16:48 +0000 (19:16 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 28 Oct 2016 17:16:48 +0000 (19:16 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffserver/ffserver.c

index 1434890..58dfb61 100644 (file)
@@ -1689,7 +1689,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;