]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
cups-browsed.c: Add tagzero attributes as IPP_TAG_KEYWORD
authorZdenek Dohnal <zdohnal@redhat.com>
Mon, 23 Nov 2020 13:01:34 +0000 (14:01 +0100)
committerZdenek Dohnal <zdohnal@redhat.com>
Mon, 23 Nov 2020 13:01:34 +0000 (14:01 +0100)
commit99b9f81be1fe31bdaaba97b6744949ae50ba3d19
tree8d1c904ad84cc29a19d37407b01f554125d04de7
parent833063b41f4f0d0ddd18584d9662f8f672dd1030
cups-browsed.c: Add tagzero attributes as IPP_TAG_KEYWORD

These attributes were added previously ass IPP_CONST_TAG(IPP_TAG_KEYWORD), which causes a problem
during 'ippDelete()' - const strings are not freed during 'ippDelete', which causes memory leaks,
because we send allocated strings into 'ippAddStrings'.
I chose this solution instead of defining a new function for freeing ipp_t struct, please let me
know if it is acceptable.
utils/cups-browsed.c