From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 4AAE24D8A1 for ; Wed, 26 Feb 2025 03:40:15 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BAF2B68CF08; Wed, 26 Feb 2025 05:40:04 +0200 (EET) Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2A06C68CEDB for ; Wed, 26 Feb 2025 05:39:59 +0200 (EET) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-6fcdf0980a6so35229887b3.1 for ; Tue, 25 Feb 2025 19:39:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740541197; x=1741145997; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4vGBZ+eDownayiQ4ZIAmJTcZPaUIuPW+zaKprbCIJnE=; b=ZUgA0smMV3F0WMdBNRMsunyCDXbOxJHHh8NtofPyJBLb7Fgyv+e0a9m3W3IVOR+etO OsrH9nZ140uPieoVvOQ8pZ5qZcF+g0Lake7Kls/2LyYMDefSrwTBtvOgmEttILMcL3zX fwv64aaCvT+bngGnBfgKCIsw3N8MEIvNf4TIjW5+AqbIMuFa+0AIQK2mleTDlZ2g/LI7 Mq73Si7TUNmONWi5phSpkX5s5eC71EKZ11z/NQ6TFQmBqEyYtAgk34qymTHmCRpiL/Y+ HicRRqfiomfwez5lY1ZKQTlm/NhUbxJZhw7afA8RnEyB160kAgUd7GVqMz2HtHEhtuQF H/sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740541197; x=1741145997; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4vGBZ+eDownayiQ4ZIAmJTcZPaUIuPW+zaKprbCIJnE=; b=cjmv/X+et5yg9V8mqrZoHLCpAnyC6umKVNlxC8/ZaHOJ98JtkdYkiJS/iiWaWoRujo dLIOkLI4qYWJK0ojo2Z6q1TgMJ99tLSi0hQXZyV/4NLMBmKlMBW4/gJgABo70REaKL+W N216PfNorHjGp7acN3YlBf8oetF4UA4seCqLVg1LCF/LMaEI4hwZ/qIz+5AbTnCgp4Yo ExoOvNrlQThiKEY2SvzBH+NK4MuK+5NxIYHrXgozDd+wFbSW+cm+6jdQp7IW6ner88tQ LcsxecRhe/lOH3b0bV6G/YTgt3gKon7X2LwitrFGdZGxG0bCmF425UiO9wUquUucXDUT l4/g== X-Gm-Message-State: AOJu0YyUmTbEIrqdR6CZDIyd3G1t6ckcqLN/9VTEoxlOe8ZPQeRGPo8c 31ou/1Zro99awl/tgGtaT0mkhC1qa/pC2QxtEMUDQfjpR5WDuoZcZQ8k/w== X-Gm-Gg: ASbGncuLmPaLNvwhkbjogTbwNWZnoNd5NfWrNFspOmjJXXqF3cI88wUxDAEgCdA0tbr LktbfiW7GI+ZqDjlHZdP+e1YhMMA/H4DPFFjS93yu+VhMMVgRrFRmFvOHSMr+e9Az224YO86QrS slafBSy22vb3+v6NxoPVfhMBxiuCBrbm0kiMCessPi/MiC+e471STnP75JTIY0NYBSonoo1kcNZ xKKL6klULonVaF7yTICtIWF3JG1wid3UIcYrtS9x0zfAmTeR6J5x32HYWeTk5LWaUNDayiOGl70 GLorzjlAoftqhlrQyDvXUB9YSp58anRFodwheVsCmAJ5fbWEUo8g1RhAowZaMIWXmuwSDvhGJCB w4Xu0QdE/BfE9VRcL0TbX X-Google-Smtp-Source: AGHT+IE959t2Kj+TTZefxG6uqDTwEl2pprALgOSVE1cjyLUX8Ax/5i+hDPfKRkMplrncBtzOsF1ieA== X-Received: by 2002:a05:690c:6e02:b0:6f9:a402:ff2e with SMTP id 00721157ae682-6fbcc23b935mr178959997b3.16.1740541197144; Tue, 25 Feb 2025 19:39:57 -0800 (PST) Received: from localhost.localdomain (108-65-109-112.lightspeed.tukrga.sbcglobal.net. [108.65.109.112]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6fd1162f3fasm7926057b3.25.2025.02.25.19.39.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2025 19:39:56 -0800 (PST) From: Rashad Tatum To: ffmpeg-devel@ffmpeg.org Date: Tue, 25 Feb 2025 22:38:52 -0500 Message-ID: <20250226033912.1031239-2-tatum.rashad@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250226033912.1031239-1-tatum.rashad@gmail.com> References: <20250226033912.1031239-1-tatum.rashad@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v4 2/3] libavformat/rtsp: Free memory allocated for temporary variables while processing sdp info X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Rashad Tatum Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --- libavformat/rtsp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 0c65f8d1a4..ac17717195 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -478,6 +478,7 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1, sdp_ip_str); } + av_freep(&sdp_ip_str); break; case 's': av_dict_set(&s->metadata, "title", p, 0); @@ -702,6 +703,7 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1, } } } + av_freep(&dest_addr); } else { if (rt->server_type == RTSP_SERVER_WMS) ff_wms_parse_sdp_a_line(s, p); -- 2.48.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".