tag: Do not unref a NULL write message
authorSamuel Ortiz <sameo@linux.intel.com>
Mon, 4 Nov 2013 23:26:14 +0000 (00:26 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 4 Nov 2013 23:26:14 +0000 (00:26 +0100)
commit2673654f7bcbf9ca365e1485682019924427c5f5
treea7f491353bb27bb973a6447b091132fc08b0ff01
parentb2e1b68046b472d545dea570f7be9fa25dabbd20
tag: Do not unref a NULL write message

After successfully writing a tag, the next read might fail in which case
tag_read_cb may be called several times. The pending write_msg pointer
needs to be unrefed only once.
src/tag.c