[vlc-commits] Decklink: Fix memory leak

Marvin Scholz git at videolan.org
Mon Oct 22 19:09:01 CEST 2018


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Mon Oct 22 09:27:42 2018 +0200| [04583e932db2f871e6507b2bc1f7e21fc5454be7] | committer: Francois Cartegnie

Decklink: Fix memory leak

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=04583e932db2f871e6507b2bc1f7e21fc5454be7
---

 modules/access/decklink.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/decklink.cpp b/modules/access/decklink.cpp
index 66d9c85108..02b321d0da 100644
--- a/modules/access/decklink.cpp
+++ b/modules/access/decklink.cpp
@@ -267,7 +267,7 @@ public:
             mode_name = strdup("unknown");
         } else {
             mode_name = DECKLINK_STRDUP(tmp_name);
-            DECKLINK_STRDUP(tmp_name);
+            DECKLINK_FREE(tmp_name);
         }
 
         msg_Dbg(demux_, "Video input format changed to %s", mode_name);



More information about the vlc-commits mailing list